From 3a97d1bd7a14815a503550c4deaccf2e0e300ceb Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 17 Nov 2008 20:17:08 +0000 Subject: - Add chameleon text template API (chameleon ${name} renderings where the template does not need to be wrapped in any containing XML). Prep for 0.4.9. --- docs/narr/templates.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/narr') diff --git a/docs/narr/templates.rst b/docs/narr/templates.rst index 4878e728c..48a9ac52e 100644 --- a/docs/narr/templates.rst +++ b/docs/narr/templates.rst @@ -136,6 +136,16 @@ application's configuration section, e.g.:: use = egg:MyProject#app reload_templates = true +Using Text Templates +-------------------- + +:mod:`repoze.bfg` also allows for the use of templates which are +composed entirely of non-XML text via :term:`Chameleon`. To do so, +you can create templates that are entirely composed of text except for +``${name}`` -style substitution points. The rendering API is a mirror +of the ZPT rendering facility, it's just imported from another place; +see :ref:`template_module` for more information. + Templating with other Templating Languages ------------------------------------------ -- cgit v1.2.3