Commit Graph

150 Commits

Author SHA1 Message Date
fabien dceb42a327 tweaked a bit the documentation
git-svn-id: http://svn.twig-project.org/trunk@204 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 14:48:42 +00:00
fabien 410a517348 added missing test
git-svn-id: http://svn.twig-project.org/trunk@203 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 14:13:46 +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 490913c103 added a unit test to prove that blocks are escaped
git-svn-id: http://svn.twig-project.org/trunk@193 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 06:47:45 +00:00
fabien 8d1648e5bd fixed error reporting in integration tests
git-svn-id: http://svn.twig-project.org/trunk@192 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 06:44:59 +00:00
fabien 80871d95bc added some tests
git-svn-id: http://svn.twig-project.org/trunk@191 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-15 14:37:47 +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 7f2c743af2 fixed indentation in the docs
git-svn-id: http://svn.twig-project.org/trunk@189 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-15 07:35:23 +00:00
fabien 3259798db6 added some warnings when a section describes Twig 0.9.5
git-svn-id: http://svn.twig-project.org/trunk@188 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-15 07:34:06 +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 dfca5a153a fixed typo in a test fixture
git-svn-id: http://svn.twig-project.org/trunk@185 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-15 06:53:28 +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 1357acf979 added operator precedence in the doc
git-svn-id: http://svn.twig-project.org/trunk@183 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-14 19:23:55 +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 98b4b97dfa fixed doc
git-svn-id: http://svn.twig-project.org/trunk@181 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-14 15:31:17 +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 2d68c11464 rearranged the doc
git-svn-id: http://svn.twig-project.org/trunk@179 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-14 11:04:44 +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 40ad5abe35 added a recipe in the doc about overriding the default filters
git-svn-id: http://svn.twig-project.org/trunk@177 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-14 06:56:48 +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 67f4144906 updated doc
git-svn-id: http://svn.twig-project.org/trunk@175 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 15:25:48 +00:00
fabien 2b30f94f4f added some notices of features only available in 0.9.5
git-svn-id: http://svn.twig-project.org/trunk@174 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 15:20:39 +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 237c3ff89e added another example for the range filter
git-svn-id: http://svn.twig-project.org/trunk@172 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 14:46:07 +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 516a5d7a85 added test for DateTime support in the date filter
git-svn-id: http://svn.twig-project.org/trunk@168 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:45:06 +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 7b3b893018 added some missing literals in the doc
git-svn-id: http://svn.twig-project.org/trunk@166 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:34:04 +00:00
fabien 35af695023 updated doc to add arrays in the 'Literals' section
git-svn-id: http://svn.twig-project.org/trunk@165 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:30:02 +00:00
fabien 7b003e86ec updated doc to add arrays in the 'Literals' section
git-svn-id: http://svn.twig-project.org/trunk@164 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:29:34 +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
fabien 2e22982551 fixed typo (closes #48)
git-svn-id: http://svn.twig-project.org/trunk@161 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 10:48:41 +00:00
fabien 6c877d0612 enhance error messages
git-svn-id: http://svn.twig-project.org/trunk@160 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 09:22:04 +00:00
fabien e2f8adb86a added __toString() to Node_Set
git-svn-id: http://svn.twig-project.org/trunk@159 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 08:47:28 +00:00
fabien 69de38fb5c made unexpected token exception more verbose
git-svn-id: http://svn.twig-project.org/trunk@158 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 08:12:07 +00:00
fabien 0ec9bc8892 removed uneeded file (the set tag is in the core extension by default)
git-svn-id: http://svn.twig-project.org/trunk@157 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-05 08:49:06 +00:00
fabien ce4670dab6 prepare the 0.9.4 release
git-svn-id: http://svn.twig-project.org/trunk@153 93ef8e89-cb99-4229-a87c-7fa0fa45744b
v0.9.4
2009-12-02 22:06:08 +00:00
fabien d47077eeea added missing item in CHANGELOG
git-svn-id: http://svn.twig-project.org/trunk@152 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-02 22:04:31 +00:00