diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-27 22:47:08 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-27 22:47:08 +0000 |
| commit | 8c56ae41b6f0221d72f1a255ce1a3ac467b98d79 (patch) | |
| tree | d310d7be53ae0f4760e09b437975dcebce52d02b /docs/narr/templates.rst | |
| parent | d7b12a30237d51d761cab0b08c5da1163ea534ee (diff) | |
| download | pyramid-8c56ae41b6f0221d72f1a255ce1a3ac467b98d79.tar.gz pyramid-8c56ae41b6f0221d72f1a255ce1a3ac467b98d79.tar.bz2 pyramid-8c56ae41b6f0221d72f1a255ce1a3ac467b98d79.zip | |
- Added manual index entries to generated index.
Diffstat (limited to 'docs/narr/templates.rst')
| -rw-r--r-- | docs/narr/templates.rst | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/narr/templates.rst b/docs/narr/templates.rst index 1ea8da369..ac44b64da 100644 --- a/docs/narr/templates.rst +++ b/docs/narr/templates.rst @@ -7,6 +7,9 @@ information that is static. :mod:`repoze.bfg` offers a number of ways to perform templating tasks "out of the box", and provides alternative templating language support via add-on "bindings" packages. +.. index:: + triple: Chameleon; ZPT; templates + .. _chameleon_zpt_templates: Templating With :term:`Chameleon` ZPT Page Templates @@ -90,6 +93,10 @@ changing the content-type and status: response.status_int = 204 return response +.. index:: + single: templates used as renderers + pair: renderers; template + Templates Used as Renderers --------------------------- @@ -141,6 +148,9 @@ renderer configuration can be done imperatively and via :term:`ZCML`. See :ref:`views_which_use_a_renderer`. See also :ref:`built_in_renderers`. +.. index:: + single: sample template + A Sample Template ----------------- @@ -175,6 +185,9 @@ of keywords passed in to it via attribute-based syntax (e.g. ``tal:content`` and ``tal:replace``) also works in these templates. +.. index:: + single: ZPT macros + Using ZPT Macros in :mod:`repoze.bfg` ------------------------------------- @@ -235,6 +248,9 @@ And ``templates/mytemplate.pt`` might look like so: </span> </html> +.. index:: + pair: Chameleon; text templates + .. _chameleon_text_templates: Templating with :term:`Chameleon` Text Templates @@ -269,6 +285,9 @@ place; see :ref:`chameleon_text_module` for the API description. A Chameleon text template can also be used as a :term:`renderer`. See :ref:`built_in_renderers` for more information. +.. index:: + pair: template renderer; side effects + Side Effects of Rendering a Chameleon Template ---------------------------------------------- @@ -295,6 +314,9 @@ should cause it to ignore these files. Here's the contents of my *.cache *.pt.py +.. index:: + pair: template; automatic reloading + .. _reload_templates_section: Automatically Reloading Templates @@ -327,6 +349,9 @@ application's configuration section, e.g.:: use = egg:MyProject#app reload_templates = true +.. index:: + pair: template; internationalization + :term:`Chameleon` Template Internationalization ----------------------------------------------- @@ -335,6 +360,9 @@ See `the internationalization chapter documentation for information about supporting internationalized units of text within :term:`Chameleon` templates. +.. index:: + single: other templating languages + Templating with other Templating Languages ------------------------------------------ @@ -374,6 +402,11 @@ template resource overriding capability explained in possible to use any template using that language as a :term:`renderer`. +.. index:: + single: template system bindings + single: Jinja2 + single: Genshi + .. _available_template_system_bindings: Available Add-On Template System Bindings |
