Commit Graph

133 Commits

Author SHA1 Message Date
Fabien Potencier 6a8e2d5d24 fixed the plural with a better patch than the previous one (closes #27) 2010-03-19 09:12:26 +01:00
Fabien Potencier 3c7b226610 added count variable whenever the plural is used (closes #27) 2010-03-19 09:01:41 +01:00
Fabien Potencier 4625d2f861 added the i18n extension (closes #23) 2010-03-17 20:39:34 +01:00
Fabien Potencier 11806d4a66 added missing copyright information in some file 2010-03-17 09:25:14 +01:00
Fabien Potencier 6c7d5603ea added support for escaping strategy in the autoescape tag (closes #19) 2010-03-04 11:08:16 +01:00
Ad van der Veer cf09f2644b Twig_Extension_Core is registration is hardcoded in to the Environment Extensions array at key 0 while it should be registered at key core as can be seen in the addExtension method 2010-03-04 10:24:30 +01:00
Fabien Potencier d2b44781e3 added an exception when the parser want to move after the EOF, and added a better error when a if tag is not closed properly (closes #12) 2010-02-19 18:19:25 +01:00
Fabien Potencier 4d5ce3ddf8 fixed previous commit 2010-02-18 17:41:48 +01:00
Fabien Potencier 35a405beac fixed twig_length_filter (closes #14) 2010-02-18 17:40:16 +01:00
Fabien Potencier c0f4c01d9a fixed twig_capitalize_string_filter() bug (closes #16) 2010-02-10 09:37:09 +01:00
Fabien Potencier cd4cde952d fixed Lexer when a template has a big chunk of text between/in a block (due to a limitation of preg_match maximum length of matching - closes #10) 2010-01-26 08:13:46 +01:00
Fabien Potencier fc3a59dd32 fixed typo 2010-01-22 18:50:37 +01:00
fabien 29d16d9940 bumped version for development
git-svn-id: http://svn.twig-project.org/trunk@232 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-20 10:15:36 +00:00
fabien 83041be523 updated CHANGELOG and bumped version
git-svn-id: http://svn.twig-project.org/trunk@228 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-20 09:38:50 +00:00
fabien 18933dfbb6 partially reverted the previous commit
git-svn-id: http://svn.twig-project.org/trunk@227 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-14 12:36:32 +00:00
fabien 8099060509 fixed Twig_Token::getTypeAsString (closes #53)
git-svn-id: http://svn.twig-project.org/trunk@226 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-14 12:35:14 +00:00
fabien 6344bf535e change usage of realpath because of some bug with PHP 5.2.4
git-svn-id: http://svn.twig-project.org/trunk@225 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-13 14:43:33 +00:00
fabien 2c2b10097b added a getName() method in the default Template abstract class
git-svn-id: http://svn.twig-project.org/trunk@223 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 16:14:59 +00:00
fabien 58c7e55ce4 added a missing accessor in Twig_Node_Set
git-svn-id: http://svn.twig-project.org/trunk@222 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 16:12:44 +00:00
fabien 53ebfec20c fixed Twig_Node_Include
git-svn-id: http://svn.twig-project.org/trunk@221 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 15:26:17 +00:00
fabien 643114be06 fixed Twig_Node_Set
git-svn-id: http://svn.twig-project.org/trunk@219 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 15:01:33 +00:00
fabien 81f4ebea8f added some methods to Twig_Node_Include to allow better introspection
git-svn-id: http://svn.twig-project.org/trunk@218 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 14:59:14 +00:00
fabien 7f9768382f fixed Twig_Node_Expression_Array
git-svn-id: http://svn.twig-project.org/trunk@217 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 14:58:41 +00:00
fabien 83ea0a5eca added the "without loop" option to the for tag (it disables the generation of the loop variable)
git-svn-id: http://svn.twig-project.org/trunk@216 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 13:16:37 +00:00
fabien 575ed89d19 added the // operator (like in Jinja2, closes #44)
git-svn-id: http://svn.twig-project.org/trunk@208 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-06 08:19:36 +00:00
fabien ca759228e3 made some cleanup
git-svn-id: http://svn.twig-project.org/trunk@206 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 16:38:09 +00:00
fabien 76a3098e89 refactored node transformers to node visitors
git-svn-id: http://svn.twig-project.org/trunk@202 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 14:13:28 +00:00
fabien 92d96e2eab refactored node transformers to node visitors
git-svn-id: http://svn.twig-project.org/trunk@201 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 14:13:11 +00:00
fabien e246460930 added __toString() to AutoEscape node class
git-svn-id: http://svn.twig-project.org/trunk@200 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 13:30:41 +00:00
fabien 0cc17d3ce2 added missing getter on GetAttr node class
git-svn-id: http://svn.twig-project.org/trunk@199 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 13:13:47 +00:00
fabien b17948b602 added missing getter on Module node class
git-svn-id: http://svn.twig-project.org/trunk@198 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 13:13:09 +00:00
fabien b14279f07e added missing getter on Block node class
git-svn-id: http://svn.twig-project.org/trunk@197 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 13:12:48 +00:00
fabien 7f6f7bb287 added support for a trailing , when defining arrays
git-svn-id: http://svn.twig-project.org/trunk@196 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 07:35:57 +00:00
fabien 8a9401ca74 removed unneeded call to ucfirst
git-svn-id: http://svn.twig-project.org/trunk@195 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 07:18:45 +00:00
fabien 5f049939ef fixed escaping when getattr nodes are used
git-svn-id: http://svn.twig-project.org/trunk@194 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 07:06:39 +00:00
fabien e2c7b2fadd added a way to specify variables to pass to an included template
git-svn-id: http://svn.twig-project.org/trunk@190 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-15 08:01:13 +00:00
fabien 2deb490a40 made the escaper filter configurable in the Escaper node transformer
git-svn-id: http://svn.twig-project.org/trunk@187 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-15 07:21:46 +00:00
fabien 2f0d54d0c9 made auto-escaping more configurable with the new is_escaper option
git-svn-id: http://svn.twig-project.org/trunk@186 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-15 07:15:46 +00:00
fabien 5c35e8a0d7 added the floor filter
git-svn-id: http://svn.twig-project.org/trunk@184 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-14 19:29:23 +00:00
fabien 9d4ceb4563 changed the automatic-escaping rules to be more sensible (the documentation lists all the rules)
git-svn-id: http://svn.twig-project.org/trunk@182 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-14 16:57:54 +00:00
fabien 215ed4864d improved the filter system to allow object methods to be used as filters
git-svn-id: http://svn.twig-project.org/trunk@180 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-14 15:29:19 +00:00
fabien be7245cb35 changed the Array and String loaders to actually make use of the cache mechanism
git-svn-id: http://svn.twig-project.org/trunk@178 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-14 07:05:06 +00:00
fabien 1a033bab6f included the default filter function definitions in the extension class files directly (Core, Escaper)
git-svn-id: http://svn.twig-project.org/trunk@176 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-14 06:46:16 +00:00
fabien 2ab4dd5be0 added the .. operator as a syntactic sugar for the range filter when the step is 1
git-svn-id: http://svn.twig-project.org/trunk@173 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 15:13:38 +00:00
fabien 87ba224cd4 added the range filter
git-svn-id: http://svn.twig-project.org/trunk@171 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 13:26:07 +00:00
fabien 95d5cefdd7 added the in operator
git-svn-id: http://svn.twig-project.org/trunk@170 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 13:03:07 +00:00
fabien 4c55be6dda added tests for the in filter
git-svn-id: http://svn.twig-project.org/trunk@169 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:55:04 +00:00
fabien 5a49c956bf added the in filter
git-svn-id: http://svn.twig-project.org/trunk@167 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:40:43 +00:00
fabien e4afc9fd7b added __toString() to Node_If
git-svn-id: http://svn.twig-project.org/trunk@163 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:22:53 +00:00
fabien ee5c9d9363 added support for arrays (closes #50)
git-svn-id: http://svn.twig-project.org/trunk@162 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 10:54:01 +00:00