Commit Graph

47 Commits

Author SHA1 Message Date
Fabien Potencier 029bb5b5a8 added a long-syntax for the set tag ({% set foo %}...{% endset %}) (closes #25) 2010-03-25 11:38:43 +01:00
Fabien Potencier 7e8cdd7b4f switched to PHPUnit for testing 2010-03-19 15:32:39 +01:00
Fabien Potencier 4625d2f861 added the i18n extension (closes #23) 2010-03-17 20:39:34 +01:00
Fabien Potencier 94151eab8d updated CHANGELOG 2010-03-04 11:15:13 +01:00
Fabien Potencier 6c7d5603ea added support for escaping strategy in the autoescape tag (closes #19) 2010-03-04 11:08:16 +01:00
Fabien Potencier 11c00dccf3 updated CHANGELOG 2010-01-26 08:18:46 +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 47d5f85c11 added a not in the CHANGELOG about flushing the template cache
git-svn-id: http://svn.twig-project.org/trunk@224 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 16:15:16 +00:00
fabien 84bf02bbc2 updated CHANGELOG
git-svn-id: http://svn.twig-project.org/trunk@220 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 15:20:34 +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 da5902593f -
git-svn-id: http://svn.twig-project.org/trunk@212 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-06 15:05:14 +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 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 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 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 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 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 ce4670dab6 prepare the 0.9.4 release
git-svn-id: http://svn.twig-project.org/trunk@153 93ef8e89-cb99-4229-a87c-7fa0fa45744b
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
fabien 07ca8a79be added support for DateTime instances for the date filter (closes #41)
git-svn-id: http://svn.twig-project.org/trunk@151 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-02 21:42:10 +00:00
fabien a59e183f73 fixed loop.last when the array only has one item (closes #40)
git-svn-id: http://svn.twig-project.org/trunk@148 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-01 15:15:03 +00:00
fabien 2ffcea6c3d removed the LINE_DELIMITER const and made it possible to insert newlines in tag and variable blocks
git-svn-id: http://svn.twig-project.org/trunk@147 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-28 12:51:56 +00:00
fabien cd9ca8374c fixed a bug when a literal '\n' were present in a template text
git-svn-id: http://svn.twig-project.org/trunk@146 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-28 11:25:56 +00:00
fabien d3ee1165fe refactored loaders (closes #38)
git-svn-id: http://svn.twig-project.org/trunk@142 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-16 15:01:52 +00:00
fabien 78ffe478e1 updated CHANGELOG
git-svn-id: http://svn.twig-project.org/trunk@137 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-11 20:37:42 +00:00
fabien 9584f0b337 updated CHANGELOG
git-svn-id: http://svn.twig-project.org/trunk@135 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-11 17:40:21 +00:00
fabien 5d28604a05 updated CHANGELOG
git-svn-id: http://svn.twig-project.org/trunk@121 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-08 08:22:44 +00:00
fabien 822fb857ad updated CHANGELOG for 0.9.3-DEV version
git-svn-id: http://svn.twig-project.org/trunk@108 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-29 20:00:52 +00:00
fabien a9397b6495 updated CHANGELOG for 0.9.2
git-svn-id: http://svn.twig-project.org/trunk@105 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-29 19:55:02 +00:00
fabien abc9c5d5ca added macro support
git-svn-id: http://svn.twig-project.org/trunk@65 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-16 07:51:42 +00:00
fabien 7ce2c3dba1 made Twig_Autoloader::autoload() a static method
git-svn-id: http://svn.twig-project.org/trunk@57 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-15 06:30:49 +00:00
fabien 6f535bc859 avoid writing template file if an error occurs
git-svn-id: http://svn.twig-project.org/trunk@56 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-15 06:06:17 +00:00
fabien d11a3307ea added $ escaping when outputting raw strings
git-svn-id: http://svn.twig-project.org/trunk@55 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-15 05:17:37 +00:00
fabien f63d478b9b enhanced filesystem loader error when a template is not found
git-svn-id: http://svn.twig-project.org/trunk@54 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-15 05:17:06 +00:00
fabien 92b715f5c8 fixed empty cache files when the template contains an error (closes #8)
git-svn-id: http://svn.twig-project.org/trunk@53 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 14:25:20 +00:00
fabien 84bfd2da12 changed dev version to 0.9.2
git-svn-id: http://svn.twig-project.org/trunk@51 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 14:16:58 +00:00
fabien 00df348605 updated the CHANGELOG
git-svn-id: http://svn.twig-project.org/trunk@48 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 08:38:45 +00:00
fabien 0c98ebcdee aded CHANGELOG file
git-svn-id: http://svn.twig-project.org/trunk@22 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-12 07:05:20 +00:00