Commit Graph

61 Commits

Author SHA1 Message Date
fabien e04739bbc3 made Node constructors coherent
git-svn-id: http://svn.twig-project.org/trunk@89 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-22 01:47:20 +00:00
fabien 43a1668343 allows macros to have the same kind of logic than the one in regular templates
git-svn-id: http://svn.twig-project.org/trunk@88 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-22 01:30:27 +00:00
fabien 79c4094679 fixed iterators with non-array values
git-svn-id: http://svn.twig-project.org/trunk@87 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-22 01:29:43 +00:00
fabien 8c0e08eb85 fixed documentation about using a method call for filters
git-svn-id: http://svn.twig-project.org/trunk@86 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-22 00:54:10 +00:00
fabien 554031dc70 added an exception of a template path does not exist
git-svn-id: http://svn.twig-project.org/trunk@85 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-22 00:44:44 +00:00
fabien b12d2f3df3 made a speed optimization for template inclusion and when including the same template over and over again
git-svn-id: http://svn.twig-project.org/trunk@84 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-20 12:00:02 +00:00
fabien fc798571f9 changed the cache extension to .php (closes #15)
git-svn-id: http://svn.twig-project.org/trunk@83 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-20 04:46:30 +00:00
fabien 2bb3c75450 fixed unreachable code in filesystem loader skips security exception (closes #17)
git-svn-id: http://svn.twig-project.org/trunk@82 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-20 04:45:04 +00:00
fabien 4a5173151d added a js escaping strategy
git-svn-id: http://svn.twig-project.org/trunk@81 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-20 04:25:01 +00:00
fabien e850d97980 updated documentation for new features
git-svn-id: http://svn.twig-project.org/trunk@78 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:53:49 +00:00
fabien e96948f2e3 added some tests
git-svn-id: http://svn.twig-project.org/trunk@77 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:53:33 +00:00
fabien 7a4f63da2c added support for short block tag
git-svn-id: http://svn.twig-project.org/trunk@76 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:53:21 +00:00
fabien 22a5723159 changed the filter tag to allow chained filters
git-svn-id: http://svn.twig-project.org/trunk@75 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:52:37 +00:00
fabien 6cae4bac4a made lexer more flexible as you can now change the default delimiters
git-svn-id: http://svn.twig-project.org/trunk@74 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:51:34 +00:00
fabien 2674ea2755 added set tag
git-svn-id: http://svn.twig-project.org/trunk@73 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:50:16 +00:00
fabien f07bd4f150 fix coding standard
git-svn-id: http://svn.twig-project.org/trunk@72 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:49:31 +00:00
fabien e511ec0802 changed default directory permission when cache dir does not exist (closes #6)
git-svn-id: http://svn.twig-project.org/trunk@68 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-17 11:58:25 +00:00
fabien c25913eabd made a small optimization (closes #12, thanks to tedivm)
git-svn-id: http://svn.twig-project.org/trunk@67 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-17 11:56:28 +00:00
fabien d3bf9d2d9d added parent constructor call in Twig_SyntaxError
git-svn-id: http://svn.twig-project.org/trunk@66 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-16 07:53:36 +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 49117dd863 changed filter first argument to be a Twig_Environment instead of Twig_Template
git-svn-id: http://svn.twig-project.org/trunk@64 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-16 06:55:35 +00:00
fabien aa08e57a14 removed old files
git-svn-id: http://svn.twig-project.org/trunk@63 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-16 06:24:06 +00:00
fabien fbb778598d removed old files
git-svn-id: http://svn.twig-project.org/trunk@62 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-16 06:22:43 +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
v0.9.1
2009-10-14 08:38:45 +00:00
fabien 18cbb5f694 fixed typo
git-svn-id: http://svn.twig-project.org/trunk@47 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 08:31:56 +00:00
fabien 5041a6e657 changed PHP 5.2.6 fix (thanks luniki for the idea)
git-svn-id: http://svn.twig-project.org/trunk@46 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 08:30:47 +00:00
fabien af5af131b4 changed dev version
git-svn-id: http://svn.twig-project.org/trunk@45 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 08:24:30 +00:00
fabien 2cfb51a143 added a rewind() method to the token stream
git-svn-id: http://svn.twig-project.org/trunk@42 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 08:08:04 +00:00
fabien 9fa9485df2 fixed look() method, added tests
git-svn-id: http://svn.twig-project.org/trunk@41 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 07:41:24 +00:00
fabien 84684d9d64 added the possibility look more than one token in the token stream
git-svn-id: http://svn.twig-project.org/trunk@40 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 06:39:47 +00:00
fabien f601832cf9 added a setPaths() method to the filesystem loader
git-svn-id: http://svn.twig-project.org/trunk@39 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 05:12:46 +00:00
fabien 203af9a649 added a getPaths() method to the filesystem loader
git-svn-id: http://svn.twig-project.org/trunk@38 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 05:06:16 +00:00
fabien e9c642351e fixed context stack for PHP 5.2.6
git-svn-id: http://svn.twig-project.org/trunk@37 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-13 17:13:49 +00:00
fabien ad12473dcb added a test for method chain calls
git-svn-id: http://svn.twig-project.org/trunk@36 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-12 17:10:22 +00:00
fabien 7fa1167b2d added support for method calls with arguments
git-svn-id: http://svn.twig-project.org/trunk@35 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-12 17:05:12 +00:00
fabien 3468042663 enhanced __toString() method for filters
git-svn-id: http://svn.twig-project.org/trunk@34 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-12 16:16:14 +00:00
fabien b5bf40136c fixed numbers when one than one decimal
git-svn-id: http://svn.twig-project.org/trunk@33 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-12 13:18:27 +00:00
fabien 92bbc7ee40 made a small optimization to for loop when no else clause exists
git-svn-id: http://svn.twig-project.org/trunk@32 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-12 12:12:29 +00:00
fabien 71ee7ba1f7 added PEAR information
git-svn-id: http://svn.twig-project.org/trunk@29 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-12 10:24:04 +00:00
fabien 5b8fd1c3bd added a PEAR package file
git-svn-id: http://svn.twig-project.org/trunk@23 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-12 07:05:31 +00:00
fabien 0c98ebcdee aded CHANGELOG file
git-svn-id: http://svn.twig-project.org/trunk@22 93ef8e89-cb99-4229-a87c-7fa0fa45744b
v0.9.0
2009-10-12 07:05:20 +00:00
fabien 34cf7dfe99 moved escape filter to core runtime (closes #4)
git-svn-id: http://svn.twig-project.org/trunk@21 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-12 05:38:32 +00:00
fabien 561dea5f8a added support for multiple directories in the filesystem loader
git-svn-id: http://svn.twig-project.org/trunk@20 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-11 07:37:41 +00:00
fabien c5bd7122dd fixed class_exists() in Loader which should not triger autoloading (closes #3)
git-svn-id: http://svn.twig-project.org/trunk@19 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-11 07:31:18 +00:00