Commit Graph

438 Commits

Author SHA1 Message Date
Fabien Potencier c0945a255d added support for macro name in the endmacro tag 2011-02-17 13:36:40 +01:00
nikic c08ed75c18 fix some typos 2011-02-09 06:50:09 +01:00
nikic 8b0d71fb33 swap GetAttr constructor arguments for from .. import macros 2011-02-09 06:48:48 +01:00
Fabien Potencier d479a704c6 fixed typos 2011-02-08 15:39:03 +01:00
Fabien Potencier f9c570e5c3 added a way for template name to be anything 2011-02-06 21:09:23 +01:00
Fabien Potencier bb7e422909 Revert "added the possibility to pass a readable name for templates"
This reverts commit 7a7c23f197.
2011-02-06 21:03:13 +01:00
Fabien Potencier 4501984e5d fixed filter tag 2011-02-05 23:57:22 +01:00
Fabien Potencier 7a7c23f197 added the possibility to pass a readable name for templates 2011-02-04 12:53:35 +01:00
Fabien Potencier 529721d773 fixed wrong usage of loadTemplate() 2011-02-04 12:53:34 +01:00
Martin Hason 46eb49e7e5 fixed functions 2011-02-04 00:55:51 +01:00
Fabien Potencier d43e346324 fixed __call() 2011-02-04 00:51:34 +01:00
Martin Hason 8adcbd971d make Twig_Error compatible with PHP 5.3.0 > 2011-02-04 00:48:00 +01:00
Fabien Potencier 4e6011d1ac fixes an infinite loop on some Windows configurations 2011-01-31 08:48:35 +01:00
Fabien Potencier 051e6ab829 fixed possible warning 2011-01-27 23:12:35 +01:00
Fabien Potencier 5b6d255a55 fixed the "length" filter for numbers 2011-01-22 09:12:57 +01:00
Fabien Potencier d7ca8375fd made a small tweak 2011-01-17 07:45:12 +01:00
Fabien Potencier 4e62a4d1b4 fixed typo in phpdoc 2011-01-16 07:55:52 +01:00
Fabien Potencier 64f63bef19 removed coupling between Twig_Node and Twig_Template
This coupling was bad as Twig_Node should only be useful
during compilation.

So, the Twig_Node_Expression_GetAttr constants have been moved
to Twig_TemplateInterface.
2011-01-16 07:49:01 +01:00
Fabien Potencier 11a8f31c5a made Twig_Loader_Filesystem more flexible 2011-01-15 12:05:44 +01:00
Fabien Potencier 05f20f88d2 fixed Template::getAttribute() as properties in PHP are case sensitive 2011-01-13 10:35:31 +01:00
Martin Hason fb4d1c2214 add methods and fix naming of methods in Twig_Error 2011-01-13 09:27:46 +01:00
Fabien Potencier f44f0cd109 fixed text token with only '0' as content 2011-01-10 19:13:18 +01:00
Fabien Potencier ac9e4eec15 fixed the ternary operator 2011-01-10 19:07:04 +01:00
Fabien Potencier e96ed3f66c bumped version for dev 2011-01-09 09:56:15 +01:00
Fabien Potencier b5d97e2c18 updated CHANGELOG and bumped version to 1.0.0-RC1 2011-01-09 09:47:02 +01:00
Fabien Potencier 1f7d142351 added callbacks for undefined functions and filters 2011-01-08 15:16:33 +01:00
Fabien Potencier 57d8bf97af added a way to catch undefined filters (like functions) 2011-01-08 15:13:15 +01:00
Fabien Potencier 6e24ef18db fixed typo 2011-01-08 14:40:26 +01:00
nikic 7048606421 fix loader doccomments 2011-01-08 14:34:57 +01:00
Fabien Potencier 8da408339b fixed a notice in a unit test 2011-01-07 17:28:00 +01:00
Martin Hason 05a12f0820 fix line number in error exceptions 2011-01-07 17:27:17 +01:00
Martin Hason 7e53fbc99e added support for line number in Twig_Template::getAttribute() 2011-01-07 10:22:59 +01:00
Fabien Potencier 4a08303062 fixed typo 2011-01-06 10:18:19 +01:00
Fabien Potencier 03df6d4da7 fixed typo 2011-01-06 08:51:56 +01:00
Fabien Potencier 957a30af75 added context support for functions and filters 2011-01-06 08:40:49 +01:00
Fabien Potencier 57ff88255e made temporary variable names predictable 2011-01-06 08:37:18 +01:00
Fabien Potencier 7cb9159e85 optimized filter tag implementation 2011-01-06 08:20:09 +01:00
Fabien Potencier d2d63bd11b fixed cache option initialization 2011-01-06 08:03:47 +01:00
Fabien Potencier dbc5bdbd87 changed cache file names so that they are spread over a directory tree 2011-01-05 20:35:38 +01:00
Fabien Potencier 8054b117b7 added some missing phpdoc 2011-01-04 16:52:04 +01:00
Fabien Potencier 0a82da1d74 removed unneeded wrapping nodes added during parsing 2011-01-03 18:35:07 +01:00
Fabien Potencier 266334042e removed the grammar and simple token parser code (moved to the Twig Extensions repository) 2011-01-03 12:28:11 +01:00
nikic 1602d9bd52 track brackets nesting in lexer 2011-01-03 07:48:09 +01:00
nikic 27f3155330 add Twig_Compiler type hints 2011-01-02 15:10:22 +01:00
nikic 08a056cf31 fix wrong error message 2011-01-02 11:01:33 +01:00
Fabien Potencier 8fee70e3d1 added some missing phpdoc 2010-12-31 16:50:39 +01:00
Fabien Potencier bd541f618f fixed optimizer 2010-12-30 21:48:36 +01:00
Leon van der Ree 024b9367eb improved error messages 2010-12-30 21:23:58 +01:00
Fabien Potencier 2e29145533 fixed ternary operator when used for the default filter 2010-12-30 11:58:28 +01:00
Fabien Potencier dee2656c9d changed autoescape first argument from on/off to the standard true/false 2010-12-30 11:20:20 +01:00