mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 09: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
|
||||
through custom functions before they are compiled. This is good for things like
|
||||
removing unwanted comments, "beautifying" your template code, keep an eye on
|
||||
words or functionality people are putting in templates, translating XML ->
|
||||
HTML, etc. See the register_filter documentation for more info.
|
||||
removing unwanted comments, keeping an eye on words or functionality people are
|
||||
putting in templates, translating XML -> HTML, etc. See the register_filter
|
||||
documentation for more info.
|
||||
|
||||
UPGRADE NOTES
|
||||
|
||||
|
11
docs.sgml
11
docs.sgml
@@ -1183,12 +1183,11 @@ $smarty->display("db:index.tpl");
|
||||
<sect1 id="section.template.filters">
|
||||
<title>Template Filters</title>
|
||||
<para>
|
||||
Template filters are PHP functions that your templates are ran through
|
||||
before they are compiled. This is good for preprocessing your templates
|
||||
to remove unwanted comments, "beautify" the template code, keep an eye
|
||||
on what people are putting in their templates, etc. Filters are
|
||||
processed in the order they are <link
|
||||
linkend="api.register.filter">registered</link>.
|
||||
Template filters are PHP functions that your templates are ran through
|
||||
before they are compiled. This is good for preprocessing your templates
|
||||
to remove unwanted comments, keeping an eye on what people are putting
|
||||
in their templates, etc. Filters are processed in the order they are
|
||||
<link linkend="api.register.filter">registered</link>.
|
||||
</para>
|
||||
<sect2>
|
||||
<title>Example of a Template Filter</title>
|
||||
|
Reference in New Issue
Block a user