diff options
author | Mario <mario@mariovavti.com> | 2022-02-11 09:27:57 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-11 09:27:57 +0000 |
commit | 615c9f1cbe2ccf9c33b035bcf04c5bc6bf64c7ed (patch) | |
tree | 9a2eb293fde70e7222957557dbfe6c3ab1df86f2 /vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-setfilter.md | |
parent | 7d75d0cfbdca9914814dd5c8390a45eaf377b48d (diff) | |
download | volse-hubzilla-615c9f1cbe2ccf9c33b035bcf04c5bc6bf64c7ed.tar.gz volse-hubzilla-615c9f1cbe2ccf9c33b035bcf04c5bc6bf64c7ed.tar.bz2 volse-hubzilla-615c9f1cbe2ccf9c33b035bcf04c5bc6bf64c7ed.zip |
composer update smarty to version 4.1 - new files
Diffstat (limited to 'vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-setfilter.md')
-rw-r--r-- | vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-setfilter.md | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-setfilter.md b/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-setfilter.md new file mode 100644 index 000000000..381c191a2 --- /dev/null +++ b/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-setfilter.md @@ -0,0 +1,42 @@ +{setfilter} {#language.function.setfilter} +=========== + +The `{setfilter}...{/setfilter}` block tag allows the definition of +template instance\'s variable filters. + +SYNTAX: {setfilter filter1\|filter2\|filter3\....}\...{/setfilter} + +The filter can be: + +- A variable filter plugin specified by it\'s name. + +- A modidier specified by it\'s name and optional additional + parameter. + +`{setfilter}...{/setfilter}` blocks can be nested. The filter definition +of inner blocks does replace the definition of the outer block. + +Template instance filters run in addition to other modifiers and +filters. They run in the following order: modifier, default\_modifier, +\$escape\_html, registered variable filters, autoloaded variable +filters, template instance\'s variable filters. Everything after +default\_modifier can be disabled with the `nofilter` flag. + + + <script> + {setfilter filter1} + {$foo} {* filter1 runs on output of $foo *} + {setfilter filter2|mod:true} + {$bar} {* filter2 and modifier mod runs on output of $bar *} + {/setfilter} + {$buh} {* filter1 runs on output of $buh *} + {/setfilter} + {$blar} {* no template instance filter runs on output of $blar} + </script> + + + +> **Note** +> +> The setting of template instance filters does not effect the output of +> included subtemplates. |