diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-12-18 16:04:07 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-12-18 16:04:07 +0100 |
commit | 628e565a6c5ee52341ba6de0b5ecf6495cbb78f8 (patch) | |
tree | 737c1027334a211b62b4a278f87be80bb7e17a4c /library/Smarty/NEW_FEATURES.txt | |
parent | a721f39945bf3213c4305a389946c464b831a5f9 (diff) | |
parent | 84bf7058119bb2ed48358678be9c212a66c8cb83 (diff) | |
download | volse-hubzilla-628e565a6c5ee52341ba6de0b5ecf6495cbb78f8.tar.gz volse-hubzilla-628e565a6c5ee52341ba6de0b5ecf6495cbb78f8.tar.bz2 volse-hubzilla-628e565a6c5ee52341ba6de0b5ecf6495cbb78f8.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'library/Smarty/NEW_FEATURES.txt')
-rw-r--r-- | library/Smarty/NEW_FEATURES.txt | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/library/Smarty/NEW_FEATURES.txt b/library/Smarty/NEW_FEATURES.txt index 67d391a52..595dc4d3c 100644 --- a/library/Smarty/NEW_FEATURES.txt +++ b/library/Smarty/NEW_FEATURES.txt @@ -21,13 +21,18 @@ Smarty 3.1.28 fetch() and display() ===================== The fetch() and display() methods of the template object accept now optionally the same parameter - as the corresponding Smarty methods the get tne content of another template. + as the corresponding Smarty methods to get tne content of another template. + Example: + $template->display(); Does display template of template object + $template->dispaly('foo.tpl'); Does display template 'foo.bar' File: resource ============== Multiple template_dir entries can now be selected by a comma separated list of indices. - The template_dir array is searched in the order of the indices. (could be used to change the default search order) - + The template_dir array is searched in the order of the indices. (Could be used to change the default search order) + Example: + $smarty->display([1],[0]foo.bar'); + Filter support ============== Optional filter names @@ -40,8 +45,8 @@ Smarty 3.1.28 - $smarty->registerFilter('pre', function($source) {return $source;}); If no optional filter name was specified it gets the default name 'closure'. If you register multiple closures register each with a unique filter name. - - $smarty->registerFilter('pre', function($source) {return $source;}, 'clousre_1'); - - $smarty->registerFilter('pre', function($source) {return $source;}, 'clousre_2'); + - $smarty->registerFilter('pre', function($source) {return $source;}, 'closure_1'); + - $smarty->registerFilter('pre', function($source) {return $source;}, 'closure_2'); Smarty 3.1.22 |