Skip to content

perfact/gocept.template_rewrite

 
 

Repository files navigation

gocept.template_rewrite

https://travis-ci.org/gocept/gocept.template_rewrite.svg?branch=master

A tool to rewrite parts of template files (DTML, ZPT).

The initial use case is to have a pluggable system to convert Python 2 expressions in templates to Python 3.

This package runs on Python 3.6.

Requirements

For the rewrite to work properly, it is necessary to have this structure attr="value" for attributes in tags with no whitespaces around the =, as otherwise the values will get lost.

Caveats

During rewrite double hyphens within HTML-comments are removed as the Chameleon engine in Zope 4 (and the actual specification) is very strict about it.

About

A tool to rewrite parts of template files (DTML, ZPT).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • HTML 0.1%