diff options
| author | Elan Ruusamäe <glen@delfi.ee> | 2016-04-24 15:20:47 +0300 |
|---|---|---|
| committer | Elan Ruusamäe <glen@delfi.ee> | 2016-04-24 15:21:08 +0300 |
| commit | 608dbd0f7f4bfa7800a4c05e59eef2ea3578faa3 (patch) | |
| tree | 1c147ba89a297967b549ab625aeddef723aeb686 /NEW_FEATURES.txt | |
| parent | af1b632a115b41d4d28404bb9968797228c355cc (diff) | |
| download | smarty-608dbd0f7f4bfa7800a4c05e59eef2ea3578faa3.tar.gz smarty-608dbd0f7f4bfa7800a4c05e59eef2ea3578faa3.tar.bz2 smarty-608dbd0f7f4bfa7800a4c05e59eef2ea3578faa3.zip | |
whitespace cleanup
Diffstat (limited to 'NEW_FEATURES.txt')
| -rw-r--r-- | NEW_FEATURES.txt | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/NEW_FEATURES.txt b/NEW_FEATURES.txt index 6944dd23..f20a9f0f 100644 --- a/NEW_FEATURES.txt +++ b/NEW_FEATURES.txt @@ -29,21 +29,21 @@ Smarty 3.1.30 New tag {make_nocache} ====================== Syntax: {make_nocache $foo} - + This tag makes a variable which does exists normally only while rendering the compiled template available in the cached template for use in not cached expressions. - + Expample: {foreach from=$list item=item} <li>{$item.name} {make_nocache $item}{if $current==$item.id} ACTIVE{/if}</li> {/foreach} - + The {foreach} loop is rendered while processing the compiled template, but $current is a nocache variable. Normally the {if $current==$item.id} would fail as the $item variable is unkown in the cached template. {make_nocache $item} does make the current $item value known in thee cached template. - + {make_nocache} is ignored when caching is disabled or the variable does exists as nocache variable. - + NOTE: if the variable value does contain objects these must have the __set_state method implemented. @@ -67,7 +67,7 @@ Smarty 3.1.30 scope='local' - this scope has only a meaning if the tag is called within a template {function}. The variable will be assigned in the local scope of the template function and the template which did call the template function. - + The {config_load} tag supports all of the above except the global scope. @@ -134,7 +134,7 @@ Smarty 3.1.28 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 @@ -149,7 +149,7 @@ Smarty 3.1.28 If you register multiple closures register each with a unique filter name. - $smarty->registerFilter('pre', function($source) {return $source;}, 'closure_1'); - $smarty->registerFilter('pre', function($source) {return $source;}, 'closure_2'); - + Smarty 3.1.22 @@ -222,7 +222,7 @@ Smarty 3.1.22 Debugging ========= The layout of the debug window has been changed for better readability - + New class constants Smarty::DEBUG_OFF Smarty::DEBUG_ON @@ -231,5 +231,3 @@ Smarty 3.1.22 Smarty::DEBUG_INDIVIDUAL will create for each display() and fetch() call an individual debug window. - . - |
