mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
Fixing docs a bit.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
11
docs.sgml
11
docs.sgml
@@ -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>
|
||||||
|
Reference in New Issue
Block a user