Commit Graph

430 Commits

Author SHA1 Message Date
Fabien Potencier dc3e1cb62c added a note in the CHANGELOG about how to remove the escaper extension 2010-12-02 16:40:55 +01:00
Fabien Potencier 08bd27f772 added a syntax error exception when parent block is used on a template that does not extend another one 2010-12-02 16:13:54 +01:00
Fabien Potencier 031bf84b25 fixed parentheses placement for the ternary operator 2010-12-02 14:33:10 +01:00
Fabien Potencier 3f69ae2d42 removed \ 2010-12-02 14:18:44 +01:00
Fabien Potencier 2fe655fa2a made the Escaper and Optimizer extensions enabled by default 2010-12-02 10:26:45 +01:00
Fabien Potencier c12fd846e8 updated CHANGELOG 2010-12-02 08:53:28 +01:00
Fabien Potencier c7dacdd6a0 fixed sandbox extension when used with auto output escaping 2010-12-02 08:52:42 +01:00
Fabien Potencier c79bb17c93 fixed escaper when wrapping a Twig_Node_Print (the original class must be preserved) 2010-12-02 08:51:53 +01:00
Fabien Potencier 7f07cf0d57 renamed a test 2010-12-02 08:31:32 +01:00
Fabien Potencier d5de1a2afd updated phpdoc 2010-12-02 08:30:47 +01:00
IamPersistent 167e2d8a0d add instructions for the current date 2010-11-30 13:58:45 +01:00
Arnaud Le Blanc 7284fa9829 fix parsing of postfix expressions 2010-11-29 08:05:26 +01:00
Fabien Potencier 13f80898a2 tweaked odc intro 2010-11-28 19:21:08 +01:00
Fabien Potencier 15e6682421 made some small changes to the previous commit 2010-11-28 17:14:26 +01:00
Jordi Boggiano 0e1b2ca857 Added joined by statement to for loops 2010-11-28 17:10:03 +01:00
Fabien Potencier 3f9453c8ea added doc for the optimizer extension 2010-11-28 16:55:40 +01:00
Fabien Potencier bd5629b3f2 added an Optimizer extension 2010-11-28 15:30:05 +01:00
Fabien Potencier c3b595281e removed obsolete option in unit tests 2010-11-28 14:28:07 +01:00
Fabien Potencier 5c5a9d45ea added priority to node visitors 2010-11-28 14:18:09 +01:00
Fabien Potencier 5f0d582d1e added Twig_Test_Method 2010-11-28 13:53:37 +01:00
Fabien Potencier c54e0dad20 bumped version for dev 2010-11-28 08:41:40 +01:00
Fabien Potencier 399a8f5c13 updated CHANGELOG and bumped version to 0.9.9 v0.9.9 2010-11-28 08:38:18 +01:00
Arnaud Le Blanc c34dee83f2 updated doc for the pre_escape filter option 2010-11-28 08:14:37 +01:00
Arnaud Le Blanc d35e19fe22 Added "pre_escape" option for filters
This allows filters to get their input pre-escaped for a given context
2010-11-28 08:14:32 +01:00
Fabien Potencier f103997b3f finished the configurability of operators 2010-11-28 08:13:15 +01:00
Fabien Potencier 6c74b60612 added file and line to Twig_Error_Runtime exceptions thrown from Twig_Template 2010-11-27 11:34:36 +01:00
Fabien Potencier c66ab82354 made error message for strict variables more useful 2010-11-27 11:15:27 +01:00
Fabien Potencier bea562a246 changed trans tag to accept any variable for the plural count 2010-11-27 10:10:04 +01:00
Fabien Potencier 18aaf36c5b updated CHANGELOG 2010-11-27 09:40:12 +01:00
Fabien Potencier c9e5a63c4b updated CHANGELOG 2010-11-26 22:17:32 +01:00
Fabien Potencier 7cdada5d05 fixed __toString() calls when sandbox is enabled 2010-11-26 22:15:05 +01:00
Fabien Potencier ab2a9ac459 added more information to an exception to ease debugging 2010-11-26 21:13:26 +01:00
Fabien Potencier dc71bf1a82 made operators configurable 2010-11-26 20:57:53 +01:00
Fabien Potencier f4c55791f7 added some example usage for the defined test in the doc 2010-11-26 19:14:17 +01:00
Fabien Potencier 903e3d9860 fixed a warning and added some unit tests 2010-11-26 19:11:59 +01:00
Jordi Boggiano 3c94b3c033 Allow is defined test on complex variables 2010-11-26 19:06:50 +01:00
Fabien Potencier a511b9bd64 fixed several bugs in SimpleTokenParser (nested optional grammar, and support for , as a separator) 2010-11-26 18:58:54 +01:00
Fabien Potencier 4bf33bf8e8 fixed typo 2010-11-26 17:21:29 +01:00
Fabien Potencier 9d8583efcc rewrote expression parser with a new algorithm to limit the depth of nested calls
This change has no impact for the end user, but many internal benefits:

* less nested calls (was the primary reason for the change as xdebug limits the depth of nested calls);
* less code;
* code is much cleaner (I have removed all the parsing "hacks");
* faster;
* more flexible (we will now be able to expose an API to add new operators);
* easier to maintain.
2010-11-26 16:35:59 +01:00
stloyd 515741a8e0 replace all is_null($value) with null === $value 2010-11-25 17:12:39 +01:00
Fabien Potencier 485406036f added some missing tests 2010-11-25 17:11:24 +01:00
Fabien Potencier 5b4c074223 added a defined test (strict_variables is now useable) 2010-11-24 09:47:51 +01:00
Fabien Potencier 4778822863 added _charset as a special variable that references the current charset 2010-11-20 14:44:00 +01:00
Arnaud Le Blanc 34373eeb01 handle spl_object_hash collisions 2010-11-20 10:22:12 +01:00
Fabien Potencier 1d2afa097f added the spaceless tag 2010-11-19 13:26:23 +01:00
Fabien Potencier 38acf6f134 removed trim_blocks option
The trim_blocks option has been removed as the rendered output depends on the value of this option.
This is not a problem for HTML output, but it's a big one if you want to output
plain text for instance.

The behavior now is the same as if the trim_blocks option is set to true. It mimicks
the behavior of PHP tags.
2010-11-19 13:21:24 +01:00
Arnaud Le Blanc 15e46e598d Changed Twig_Node_Expression_Filter to accept only one filter
Chained filters are now represented by nested
Twig_Node_Expression_Filter nodes internally.

This makes it easier to analyse the tree
2010-11-19 08:06:32 +01:00
Fabien Potencier 92b890bf25 removed usage of SplObjectStorage as PHP < 5.3 does not support ArrayAccess 2010-11-17 11:35:26 +01:00
Fabien Potencier 001685ba13 added support for is*() methods for attributes (foo.bar now looks for foo->getBar() or foo->isBar()) 2010-11-16 10:51:23 +01:00
Arnaud Le Blanc 62551da95e fix storage of object properties in analysis 2010-11-08 07:48:13 +01:00