diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-11-17 20:17:08 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-11-17 20:17:08 +0000 |
| commit | 3a97d1bd7a14815a503550c4deaccf2e0e300ceb (patch) | |
| tree | 029acb33de81f61b333cf294df2bccd1aa91cc31 /docs/api | |
| parent | bce9fb87e15ec902e33280fbdbaf00c20a1ef1e1 (diff) | |
| download | pyramid-3a97d1bd7a14815a503550c4deaccf2e0e300ceb.tar.gz pyramid-3a97d1bd7a14815a503550c4deaccf2e0e300ceb.tar.bz2 pyramid-3a97d1bd7a14815a503550c4deaccf2e0e300ceb.zip | |
- 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.
Diffstat (limited to 'docs/api')
| -rw-r--r-- | docs/api/template.rst | 22 |
1 files changed, 17 insertions, 5 deletions
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` ---------------------- |
