Fixing docs a bit.

This commit is contained in:
andrey
2001-04-25 14:52:52 +00:00
parent e144ade561
commit 6dd3bc9cad
2 changed files with 8 additions and 9 deletions

View File

@@ -51,9 +51,9 @@ etc. Just give some formats a try and see what works.
Smarty now has template filters, meaning that you can run your templates Smarty now has template filters, meaning that you can run your templates
through custom functions before they are compiled. This is good for things like through custom functions before they are compiled. This is good for things like
removing unwanted comments, "beautifying" your template code, keep an eye on removing unwanted comments, keeping an eye on words or functionality people are
words or functionality people are putting in templates, translating XML -> putting in templates, translating XML -> HTML, etc. See the register_filter
HTML, etc. See the register_filter documentation for more info. documentation for more info.
UPGRADE NOTES UPGRADE NOTES

View File

@@ -1183,12 +1183,11 @@ $smarty->display("db:index.tpl");
<sect1 id="section.template.filters"> <sect1 id="section.template.filters">
<title>Template Filters</title> <title>Template Filters</title>
<para> <para>
Template filters are PHP functions that your templates are ran through Template filters are PHP functions that your templates are ran through
before they are compiled. This is good for preprocessing your templates before they are compiled. This is good for preprocessing your templates
to remove unwanted comments, "beautify" the template code, keep an eye to remove unwanted comments, keeping an eye on what people are putting
on what people are putting in their templates, etc. Filters are in their templates, etc. Filters are processed in the order they are
processed in the order they are <link <link linkend="api.register.filter">registered</link>.
linkend="api.register.filter">registered</link>.
</para> </para>
<sect2> <sect2>
<title>Example of a Template Filter</title> <title>Example of a Template Filter</title>