summaryrefslogtreecommitdiff
path: root/docs/narr/templates.rst
diff options
context:
space:
mode:
authorBen Bangert <ben@groovie.org>2010-10-29 23:35:02 -0700
committerBen Bangert <ben@groovie.org>2010-10-29 23:35:02 -0700
commit7698bd83ebc974df7855e4203d2bda0925840956 (patch)
treedf878e2228adc816177d2df09be4ed73dcd9d3a6 /docs/narr/templates.rst
parent7595faa3185b9fbdf54c04ae3e02a17102ec30cb (diff)
downloadpyramid-7698bd83ebc974df7855e4203d2bda0925840956.tar.gz
pyramid-7698bd83ebc974df7855e4203d2bda0925840956.tar.bz2
pyramid-7698bd83ebc974df7855e4203d2bda0925840956.zip
First set of Mako docs for narrative.
Diffstat (limited to 'docs/narr/templates.rst')
-rw-r--r--docs/narr/templates.rst19
1 files changed, 8 insertions, 11 deletions
diff --git a/docs/narr/templates.rst b/docs/narr/templates.rst
index 57d1bc3b9..736e6a185 100644
--- a/docs/narr/templates.rst
+++ b/docs/narr/templates.rst
@@ -8,10 +8,9 @@ dynamic data provided by a :term:`view`. :mod:`pyramid` offers a
number of ways to perform templating tasks out of the box, and
provides add-on templating support through a set of bindings packages.
-Out of the box, :mod:`pyramid` provides templating via the
-:term:`Chameleon` templating library. :term:`Chameleon` provides
-support for two different types of templates: :term:`ZPT` templates
-and text templates.
+Out of the box, :mod:`pyramid` provides templating via the :term:`Chameleon`
+and :term:`Mako` templating libraries. :term:`Chameleon` provides support for
+two different types of templates: :term:`ZPT` templates and text templates.
Before discussing how built-in templates are used in
detail, we'll discuss two ways to render templates within
@@ -166,13 +165,11 @@ For example, here's an example of using raw `Mako
response = Response(result)
return response
-You probably wouldn't use this particular snippet in a project,
-because it's easier to use the Mako renderer bindings which already
-exist for :mod:`pyramid` named ``repoze.bfg.mako`` (available from
-`PyPI <http://pypi.python.org/pypi/repoze.bfg.mako>`_). But if your
-favorite templating system is not supported as a renderer extension
-for :mod:`pyramid`, you can create your own simple combination as
-shown above.
+You probably wouldn't use this particular snippet in a project, because it's
+easier to use the Mako renderer bindings which already exist in
+:mod:`pyramid`. But if your favorite templating system is not supported as a
+renderer extension for :mod:`pyramid`, you can create your own simple
+combination as shown above.
.. note::