diff options
| author | Uwe Tews <uwe.tews@googlemail.com> | 2015-06-19 03:21:52 +0200 |
|---|---|---|
| committer | Uwe Tews <uwe.tews@googlemail.com> | 2015-06-19 03:21:52 +0200 |
| commit | afe79aac2ecc5784f9b8c6351332bdbe9ce8174a (patch) | |
| tree | 7ba44a3fac9e2b5203d746315c0bd5630c6348a5 /NEW_FEATURES.txt | |
| parent | 4537d8aae6c4a26f5439bc3a05d3437d25c2c4d2 (diff) | |
| download | smarty-afe79aac2ecc5784f9b8c6351332bdbe9ce8174a.tar.gz smarty-afe79aac2ecc5784f9b8c6351332bdbe9ce8174a.tar.bz2 smarty-afe79aac2ecc5784f9b8c6351332bdbe9ce8174a.zip | |
- improvement allow closures as callback at $smarty->registerFilter() https://github.com/smarty-php/smarty/issues/59
Diffstat (limited to 'NEW_FEATURES.txt')
| -rw-r--r-- | NEW_FEATURES.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/NEW_FEATURES.txt b/NEW_FEATURES.txt index b2c18c99..d08c830f 100644 --- a/NEW_FEATURES.txt +++ b/NEW_FEATURES.txt @@ -2,6 +2,20 @@ This file contains a brief description of new features which have been added to Smarty 3.1 +Smarty 3.1.28 + + Filter support + ============== + Optional filter names + An optional filter name was added to $smarty->registerFilter(). It can be used to unregister a filter by name. + - $smarty->registerFilter('output', $callback, 'name'); + $smarty->unregister('output', 'name'); + + Closures + $smarty->registerFilter() does now accept closures. + - $smarty->registerFilter('pre', function($source) {return $source;}); + If no optional filter name was specified it gets the default name 'closure'. + Smarty 3.1.22 Namespace support within templates |
