* in Node classes,
sub-nodes are now accessed via getNode() (instead of property access)
attributes via getAttribute() (instead of array access)
+ * the urlencode filter had been renamed to url_encode
* the implementation of template inheritance has been rewritten
(blocks can now be called individually and still work with inheritance)
* fixed error handling for if tag when a syntax error occurs within a subparse process
* added a way to implement custom logic for resolving token parsers given a tag name
* fixed js escaper to be stricter (now uses a whilelist-based js escaper)
- * added the following filers: "constant", "trans", "replace"
+ * added the following filers: "constant", "trans", "replace", "json_encode"
* added a "constant" test
* fixed objects with __toString() not being autoescaped
* fixed subscript expressions when calling __call() (methods now keep the case)
'replace' => new Twig_Filter_Function('twig_strtr'),
// encoding
- 'urlencode' => new Twig_Filter_Function('twig_urlencode_filter', array('is_escaper' => true)),
+ 'url_encode' => new Twig_Filter_Function('twig_urlencode_filter', array('is_escaper' => true)),
'json_encode' => new Twig_Filter_Function('json_encode'),
// string filters