Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 861 Bytes

chameleon_zpt.rst

File metadata and controls

28 lines (19 loc) · 861 Bytes

pyramid.chameleon_zpt

pyramid.chameleon_zpt

get_template

render_template

render_template_to_response

These APIs will work against files which supply template text which matches the ZPT specification.

The API of pyramid.chameleon_zpt is identical to that of pyramid.chameleon_text; only its import location is different. If you need to import an API functions from this module as well as the pyramid.chameleon_text module within the same view file, use the as feature of the Python import statement, e.g.:

from pyramid.chameleon_zpt import render_template as zpt_render
from pyramid.chameleon_text import render_template as text_render