@@ -81,7 +81,7 @@ need to be unique, or a later parameter setting will over-ride an earlier one.
8181This also impacts escaping parameter values for different contexts inside your
8282script. You will have to give each escaped value a unique parameter name.
8383
84- Parser templates
84+ Parser Templates
8585================
8686
8787You can use the ``render() `` method to parse (or render) simple templates,
@@ -90,10 +90,12 @@ like this:
9090.. literalinclude :: view_parser/003.php
9191
9292View parameters are passed to ``setData() `` as an associative
93- array of data to be replaced in the template. In the above example, the
94- template would contain two variables: ``{blog_title} `` and ``{blog_heading} ``
95- The first parameter to ``render() `` contains the name of the :doc: `view
96- file </outgoing/views>`, Where *blog_template * is the name of your view file.
93+ array of data to be replaced in the template.
94+
95+ In the above example, the template would contain two variables: ``{blog_title} `` and ``{blog_heading} ``
96+
97+ The first parameter to ``render() `` contains the name of the template, where
98+ ``blog_template `` is the name of your view template file.
9799
98100.. important :: If the file extension is omitted, then the views are expected to end with the .php extension.
99101
@@ -102,7 +104,7 @@ Parser Configuration Options
102104
103105Several options can be passed to the ``render() `` or ``renderString() `` methods.
104106
105- - ``cache `` - the time in seconds, to save a view's results; ignored for renderString()
107+ - ``cache `` - the time in seconds, to save a view's results; ignored for `` renderString() ``
106108- ``cache_name `` - the ID used to save/retrieve a cached view result; defaults to the viewpath;
107109 ignored for renderString()
108110- ``saveData `` - true if the view data parameters should be retained for subsequent calls;
0 commit comments