Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.03 KB

README.rst

File metadata and controls

32 lines (21 loc) · 1.03 KB

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.