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/api/template.rst | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'docs/api') diff --git a/docs/api/template.rst b/docs/api/template.rst index 8cf63c91b..8685073c3 100644 --- a/docs/api/template.rst +++ b/docs/api/template.rst @@ -3,12 +3,12 @@ :mod:`repoze.bfg` Built-in Templating Facilties =============================================== -Three templating facilities are provided by :mod:`repoze.bfg` "out of -the box": :term:`ZPT` -style, :term:`Genshi` -style, and :term:`XSLT` -templating. +Four templating facilities are provided by :mod:`repoze.bfg` "out of +the box": :term:`ZPT` -style, :term:`Genshi` -style, text templating, +and :term:`XSLT` templating. -ZPT-style and Genshi-style templates are in :mod:`repoze.bfg` are -supported by the :term:`Chameleon` (nee :term:`z3c.pt`) templating +ZPT-style, Genshi-style, and text templates are in :mod:`repoze.bfg` +are supported by the :term:`Chameleon` (nee :term:`z3c.pt`) templating engine, which contains alternate implementations of both the ZPT and Genshi language specifications. @@ -32,6 +32,7 @@ statement, e.g.: from repoze.chameleon_zpt import render_template as zpt_render from repoze.chameleon_genshi import render_template as genshi_render + from repoze.chameleon_text import render_template as text_render :mod:`repoze.bfg.chameleon_zpt` ------------------------------- @@ -58,6 +59,17 @@ statement, e.g.: .. autofunction:: render_template_to_response +:mod:`repoze.bfg.chameleon_text` +---------------------------------- + +.. automodule:: repoze.bfg.chameleon_text + + .. autofunction:: get_template + + .. autofunction:: render_template + + .. autofunction:: render_template_to_response + :mod:`repoze.bfg.xslt` ---------------------- -- cgit v1.2.3