summaryrefslogtreecommitdiff
path: root/docs/source/templates.rst
diff options
context:
space:
mode:
authorRyan Petrello <lists@ryanpetrello.com>2012-03-24 01:17:10 -0400
committerRyan Petrello <lists@ryanpetrello.com>2012-03-24 01:17:10 -0400
commit1d5418420a1fbaa6e399a242172b811d97dc4e17 (patch)
treeb7cae7f461f422556f9e9037dfe2ad971d8b668c /docs/source/templates.rst
parent983ecaee84e17ec1e7909c195d561c7f9c91e0b1 (diff)
downloadpecan-1d5418420a1fbaa6e399a242172b811d97dc4e17.tar.gz
More documentation updates.
Diffstat (limited to 'docs/source/templates.rst')
-rw-r--r--docs/source/templates.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/source/templates.rst b/docs/source/templates.rst
index b0d9407..271d815 100644
--- a/docs/source/templates.rst
+++ b/docs/source/templates.rst
@@ -14,25 +14,25 @@ supports the following templating engines:
* `JSON`
The default template system is `mako`, but can be configured by passing the
-``default_renderer`` key in your app configuration::
+``default_renderer`` key in your application's configuration::
app = {
'default_renderer' : 'kajiki',
# ...
}
-The available renderer type strings are `mako`, `genshi`, `kajiki`, `jinja`,
-and `json`.
+The available renderer type strings are ``mako``, ``genshi``, ``kajiki``,
+``jinja``, and ``json``.
Using Template Renderers
------------------------
:ref:`pecan_decorators` defines a decorator called ``@expose``, which is used
-to flag a method as a controller. The ``@expose`` decorator takes a variety of
-parameters, including a ``template`` argument, which is the path to the template
-file to use for that controller. A controller will use the default template
-engine, unless the path is prefixed by another renderer name::
+to flag a method as a public controller. The ``@expose`` decorator takes
+a variety of parameters, including a ``template`` argument, which is the path
+to the template file to use for that controller. ``@expose`` will use the
+default template engine unless the path is prefixed by another renderer name::
class MyController(object):
@expose('path/to/mako/template.html')