Running Launchpad with Chameleon template engine¶
Important
This document has been migrated from our old wiki as is, and has not yet been revised. The content might be outdated, links and images could be broken. We are aware and will fix any issues as soon as possible.
Uncomment
<include package="z3c.ptcompat" />inzcml/zopeapp.zcmlto enablez3c.pt.
Useful environment options for z3c.pt:
# in debug-mode, templates on disk are reloaded if they're modified
CHAMELEON_DEBUG (default: false)
# disable disk-cache to prevent the compiler from caching on disk
CHAMELEON_CACHE (default: true)
# if eager parsing is enabled, templates are parsed upon
# instantiation, rather than when first called upon; this mode is
# useful for verifying validity of templates across a project
CHAMELEON_EAGER (default: false)
# in strict mode, filled macro slots must exist in the macro that's
# being used.
CHAMELEON_STRICT (default: false)
# when validation is enabled, dynamically inserted content is
# validated against the XHTML standard
CHAMELEON_VALIDATE (default: false)