konrad/twig.git
14 years agofixed getContext() and getAttribute() when a property value exist but is null (closes...
Fabien Potencier [Sat, 12 Jun 2010 11:01:26 +0000]
fixed getContext() and getAttribute() when a property value exist but is null (closes #67)

14 years agoadded self variable, simplified macro management, added some more documentation for...
Fabien Potencier [Sat, 12 Jun 2010 09:27:38 +0000]
added self variable, simplified macro management, added some more documentation for macros (closes #61)

14 years agofixed a bug when a template with a layout is reused more than one time
Fabien Potencier [Fri, 11 Jun 2010 10:10:32 +0000]
fixed a bug when a template with a layout is reused more than one time

14 years agofixed escaping for filtered object attributes (closes #59)
Fabien Potencier [Fri, 11 Jun 2010 05:20:33 +0000]
fixed escaping for filtered object attributes (closes #59)

14 years agofixed infinite loop in inheritance (closes #66)
Fabien Potencier [Fri, 11 Jun 2010 05:10:43 +0000]
fixed infinite loop in inheritance (closes #66)

14 years agofixed \ before classes
Fabien Potencier [Thu, 10 Jun 2010 13:37:24 +0000]
fixed \ before classes

14 years agoadded some helper method to build common nodes more easily (experimental)
Fabien Potencier [Thu, 10 Jun 2010 08:51:31 +0000]
added some helper method to build common nodes more easily (experimental)

14 years agoadded Twig_Template instance support to the include tag
Fabien Potencier [Thu, 10 Jun 2010 08:08:38 +0000]
added Twig_Template instance support to the include tag

14 years agoupdated CHANGELOG
Fabien Potencier [Wed, 9 Jun 2010 21:10:09 +0000]
updated CHANGELOG

14 years agoadded support for dynamic and conditional inheritance ({% extends some_var %} and...
Fabien Potencier [Wed, 9 Jun 2010 15:15:52 +0000]
added support for dynamic and conditional inheritance ({% extends some_var %} and {% extends standalone ? minimum : base %})

14 years agofixed toXml() method when some nodes are null
Fabien Potencier [Wed, 9 Jun 2010 14:03:58 +0000]
fixed toXml() method when some nodes are null

14 years agochanged as to = for the set tag and removed the need for as in short-notation of...
Fabien Potencier [Wed, 9 Jun 2010 06:20:51 +0000]
changed as to = for the set tag and removed the need for as in short-notation of the block tag (closes #54)

14 years ago[doc] updated documentation
Fabien Potencier [Tue, 8 Jun 2010 14:47:55 +0000]
[doc] updated documentation

14 years agoadded a grammar to easily describe a tag syntax with a string
Fabien Potencier [Fri, 28 May 2010 13:28:22 +0000]
added a grammar to easily describe a tag syntax with a string

14 years agomoved the unit test bootstrap file to a more obvious place
Fabien Potencier [Tue, 8 Jun 2010 14:12:41 +0000]
moved the unit test bootstrap file to a more obvious place

14 years agomade parseArguments autonomous
Fabien Potencier [Tue, 8 Jun 2010 09:38:36 +0000]
made parseArguments autonomous

14 years agomade parseArrayExpression autonomous
Fabien Potencier [Tue, 8 Jun 2010 09:23:12 +0000]
made parseArrayExpression autonomous

14 years ago[doc] added hashes in the Literals paragraph
Fabien Potencier [Tue, 8 Jun 2010 06:27:02 +0000]
[doc] added hashes in the Literals paragraph

14 years ago[doc] updated tags and filters provided by the Core extension
Fabien Potencier [Mon, 7 Jun 2010 18:45:39 +0000]
[doc] updated tags and filters provided by the Core extension

14 years agofixed autoloader
Fabien Potencier [Mon, 7 Jun 2010 18:15:27 +0000]
fixed autoloader

14 years agoadded some phpdoc for TokenParser classes
Fabien Potencier [Mon, 7 Jun 2010 17:28:03 +0000]
added some phpdoc for TokenParser classes

14 years agochanged order of Twig_Node_Expression_GetAttr constructor arguments
Fabien Potencier [Mon, 7 Jun 2010 11:49:29 +0000]
changed order of Twig_Node_Expression_GetAttr constructor arguments

14 years agofixed the for tag for large arrays (closes #64 - based on an idea from gwilym - aeb56...
Fabien Potencier [Mon, 7 Jun 2010 09:04:23 +0000]
fixed the for tag for large arrays (closes #64 - based on an idea from gwilym - aeb56f9f966bd23b77d35c87999be0606dbb3f47)

14 years agomade Resource::getAttribute() more generic (WIP)
Fabien Potencier [Mon, 7 Jun 2010 08:41:15 +0000]
made Resource::getAttribute() more generic (WIP)

14 years agofixed typo in doc (closes #63)
Fabien Potencier [Mon, 7 Jun 2010 08:12:55 +0000]
fixed typo in doc (closes #63)

14 years agoremoved PHP 5.3 specific code
Fabien Potencier [Thu, 3 Jun 2010 10:51:59 +0000]
removed PHP 5.3 specific code

14 years agoadded a toXml() method to Node
Fabien Potencier [Thu, 3 Jun 2010 07:27:49 +0000]
added a toXml() method to Node

14 years agofixed phpdoc
Fabien Potencier [Thu, 3 Jun 2010 06:46:00 +0000]
fixed phpdoc

14 years agomade a big refactoring of Twig internals (and added a bunch of unit tests and phpdoc...
Fabien Potencier [Tue, 1 Jun 2010 17:56:15 +0000]
made a big refactoring of Twig internals (and added a bunch of unit tests and phpdoc, fixes #53)

14 years agomade error messages in tests more explicit about where the error occurred
Fabien Potencier [Tue, 1 Jun 2010 12:24:56 +0000]
made error messages in tests more explicit about where the error occurred

14 years agomade error messages in tests more explicit about where the error occurred
Fabien Potencier [Tue, 1 Jun 2010 11:22:58 +0000]
made error messages in tests more explicit about where the error occurred

14 years agofixed typo
Fabien Potencier [Fri, 28 May 2010 11:11:54 +0000]
fixed typo

14 years agotweaked an error message
Fabien Potencier [Fri, 28 May 2010 10:56:32 +0000]
tweaked an error message

14 years agotweaked some ::__toString() methods for Node classes
Fabien Potencier [Fri, 28 May 2010 06:44:36 +0000]
tweaked some ::__toString() methods for Node classes

14 years agoadded bootstrap option to phpunit.xml
Fabien Potencier [Fri, 28 May 2010 06:27:32 +0000]
added bootstrap option to phpunit.xml

14 years agorenamed ignore_invalid_vars to strict_variables
Fabien Potencier [Fri, 28 May 2010 05:59:29 +0000]
renamed ignore_invalid_vars to strict_variables

14 years ago[doc] added documentation for the ignore_invalid_variables option
Fabien Potencier [Fri, 28 May 2010 05:32:29 +0000]
[doc] added documentation for the ignore_invalid_variables option

14 years agofixed iterator_to_array() usage (closes #57)
Fabien Potencier [Thu, 27 May 2010 16:42:40 +0000]
fixed iterator_to_array() usage (closes #57)

14 years agochanged the date filter to support any date format supported by DateTime (closes...
Fabien Potencier [Thu, 27 May 2010 16:29:40 +0000]
changed the date filter to support any date format supported by DateTime (closes #56)

14 years ago[doc] added a paragraph about IDEs support
Fabien Potencier [Thu, 27 May 2010 09:09:08 +0000]
[doc] added a paragraph about IDEs support

14 years ago[doc] added git instructions
Fabien Potencier [Thu, 27 May 2010 07:51:04 +0000]
[doc] added git instructions

14 years agoadded ignore_invalid_variables setting to throw an exception when an invalid variable...
Fabien Potencier [Wed, 26 May 2010 11:56:43 +0000]
added ignore_invalid_variables setting to throw an exception when an invalid variable is used in a template

14 years agoadded the lexer, parser, and compiler as arguments to the Twig_Environment constructor
Fabien Potencier [Wed, 26 May 2010 11:52:49 +0000]
added the lexer, parser, and compiler as arguments to the Twig_Environment constructor

14 years agochanged the cache option to only accepts an explicit path to a cache directory or...
Fabien Potencier [Wed, 26 May 2010 11:34:15 +0000]
changed the cache option to only accepts an explicit path to a cache directory or false

14 years agofixed typo in phpdoc
Fabien Potencier [Wed, 26 May 2010 11:19:42 +0000]
fixed typo in phpdoc

14 years agoadded a way to add token parsers, filters, and visitors without creating an extension
Fabien Potencier [Wed, 26 May 2010 09:28:06 +0000]
added a way to add token parsers, filters, and visitors without creating an extension

14 years agoadded Twig_FilterInterface
Fabien Potencier [Wed, 26 May 2010 09:26:38 +0000]
added Twig_FilterInterface

14 years agomade some small optimizations
Fabien Potencier [Wed, 26 May 2010 06:02:03 +0000]
made some small optimizations

14 years agoadded two interfaces: Twig_NodeInterface and Twig_TokenParserInterface
Fabien Potencier [Wed, 26 May 2010 05:49:34 +0000]
added two interfaces: Twig_NodeInterface and Twig_TokenParserInterface

14 years agochanged the generated code to match the new coding standards
Fabien Potencier [Tue, 25 May 2010 16:11:01 +0000]
changed the generated code to match the new coding standards

14 years agofixed sandbox mode (__toString() method check was not enforced if called implicitly...
Fabien Potencier [Tue, 25 May 2010 16:01:48 +0000]
fixed sandbox mode (__toString() method check was not enforced if called implicitly from a simple statement like {{ article }})

14 years agodisabled the cache when testing the sandbox
Fabien Potencier [Tue, 25 May 2010 15:58:14 +0000]
disabled the cache when testing the sandbox

14 years agochanged the grammar for the short-notation of the block tag to be more consistent...
Fabien Potencier [Tue, 25 May 2010 14:43:30 +0000]
changed the grammar for the short-notation of the block tag to be more consistent with other tags

14 years agoadded the filename when throwing an exception about a non-empty body in a child template
Fabien Potencier [Thu, 20 May 2010 09:30:20 +0000]
added the filename when throwing an exception about a non-empty body in a child template

14 years agoadded line number in exception
Fabien Potencier [Thu, 20 May 2010 08:56:56 +0000]
added line number in exception

14 years agoadded an exception when a child template has a non-empty body (as it is always ignore...
Fabien Potencier [Thu, 20 May 2010 08:43:29 +0000]
added an exception when a child template has a non-empty body (as it is always ignored when rendering)

14 years agofixed some phpdoc
Fabien Potencier [Thu, 20 May 2010 08:42:48 +0000]
fixed some phpdoc

14 years agobumped version for development
Fabien Potencier [Wed, 12 May 2010 10:06:28 +0000]
bumped version for development

14 years agoupdated CHANGELOG and bumped version to 0.9.6
Fabien Potencier [Wed, 12 May 2010 10:05:37 +0000]
updated CHANGELOG and bumped version to 0.9.6

14 years agofixed variables defined outside a loop and for which the value changes in a for loop...
Fabien Potencier [Tue, 11 May 2010 09:54:06 +0000]
fixed variables defined outside a loop and for which the value changes in a for loop (closes #43)

14 years agoadded the fixture file in error message to ease debugging tests
Fabien Potencier [Tue, 11 May 2010 09:52:25 +0000]
added the fixture file in error message to ease debugging tests

14 years agochanged coding standards
Fabien Potencier [Tue, 11 May 2010 08:38:48 +0000]
changed coding standards

14 years agoupdated CHANGELOG
Fabien Potencier [Mon, 10 May 2010 17:33:30 +0000]
updated CHANGELOG

14 years agomade the test suite more compatible with old versions of PHPUnit
Fabien Potencier [Mon, 10 May 2010 17:30:00 +0000]
made the test suite more compatible with old versions of PHPUnit

14 years agoremoved \ in the test suite to make it compatible with PHP 5.2
Fabien Potencier [Mon, 10 May 2010 17:26:49 +0000]
removed \ in the test suite to make it compatible with PHP 5.2

14 years agoremoved \ in the test suite to make it compatible with PHP 5.2
Fabien Potencier [Mon, 10 May 2010 17:25:50 +0000]
removed \ in the test suite to make it compatible with PHP 5.2

14 years agomade a small optimization
Fabien Potencier [Mon, 10 May 2010 15:21:55 +0000]
made a small optimization

14 years agoadded support for __call() in expression resolution (closes #2)
Fabien Potencier [Mon, 10 May 2010 10:46:52 +0000]
added support for __call() in expression resolution (closes #2)

The new algorithm for object method resolution is now the following:

  * get all methods declared for `$object` using ReflectionObject::getMethods()
  * check if `$item` is in the list of method names
  * check if `get$item` is in the list of method names
  * check if `__call` is defined and pass `$item` as the method name

14 years agofixed node visiting for macros (macros are now visited by visitors as any other node)
Fabien Potencier [Thu, 6 May 2010 06:34:23 +0000]
fixed node visiting for macros (macros are now visited by visitors as any other node)

14 years agofixed Twig_Node_Filter::__toString()
Fabien Potencier [Thu, 6 May 2010 06:21:17 +0000]
fixed Twig_Node_Filter::__toString()

14 years agofixed Twig_Node_Module::__toString() to include information about blocks and macros
Fabien Potencier [Thu, 6 May 2010 06:14:28 +0000]
fixed Twig_Node_Module::__toString() to include information about blocks and macros

14 years agoremoved obsolete usage of setCurrentBlock() (closes #47)
Fabien Potencier [Thu, 6 May 2010 05:52:50 +0000]
removed obsolete usage of setCurrentBlock() (closes #47)

14 years agofixed nested block definitions with a parent call (closes #45)
Fabien Potencier [Thu, 29 Apr 2010 05:58:52 +0000]
fixed nested block definitions with a parent call (closes #45)

14 years agoadded an exception when trying to nest block definitions (closes #45)
Fabien Potencier [Wed, 28 Apr 2010 17:51:05 +0000]
added an exception when trying to nest block definitions (closes #45)

14 years agooptimized for loop generation
Fabien Potencier [Wed, 14 Apr 2010 10:05:33 +0000]
optimized for loop generation

14 years agotweaked For node temporary variable names (closes #42)
Fabien Potencier [Tue, 13 Apr 2010 09:45:01 +0000]
tweaked For node temporary variable names (closes #42)

14 years ago[doc] added a recipe about i18n and xgettext
Fabien Potencier [Wed, 7 Apr 2010 13:56:38 +0000]
[doc] added a recipe about i18n and xgettext

14 years agofixed test that referenced a class from another test
James Logsdon [Tue, 9 Feb 2010 01:00:17 +0000]
fixed test that referenced a class from another test

14 years agoadded the cycle filter (closes #26)
Fabien Potencier [Sun, 28 Mar 2010 13:25:15 +0000]
added the cycle filter (closes #26)

14 years agofixed the Lexer when mbstring.func_overload is used with an mbstring.internal_encodin...
Fabien Potencier [Sun, 28 Mar 2010 13:10:36 +0000]
fixed the Lexer when mbstring.func_overload is used with an mbstring.internal_encoding different from ASCII (closes #32)

14 years agoadded a note about the without loop statement introduced in 0.9.5 (closes #34)
Fabien Potencier [Sun, 28 Mar 2010 12:28:10 +0000]
added a note about the without loop statement introduced in 0.9.5 (closes #34)

14 years agofixed documentation of the in operator
Fabien Potencier [Sun, 28 Mar 2010 12:24:00 +0000]
fixed documentation of the in operator

14 years agofixed doc for the multiply operator which is not able to deal with strings (closes...
Fabien Potencier [Sun, 28 Mar 2010 08:12:04 +0000]
fixed doc for the multiply operator which is not able to deal with strings (closes #29)

14 years agoadded a note about variable resolution and PHP4-style constructors (refs #33)
Fabien Potencier [Sun, 28 Mar 2010 07:49:09 +0000]
added a note about variable resolution and PHP4-style constructors (refs #33)

14 years agoupdated documentation for the + operator (closes #30)
Fabien Potencier [Thu, 25 Mar 2010 12:29:30 +0000]
updated documentation for the + operator (closes #30)

14 years agoadded a note about the twig extensions repository in the doc
Fabien Potencier [Thu, 25 Mar 2010 11:09:01 +0000]
added a note about the twig extensions repository in the doc

14 years agofixed doc
Fabien Potencier [Thu, 25 Mar 2010 11:03:27 +0000]
fixed doc

14 years agoadded a long-syntax for the set tag ({% set foo %}...{% endset %}) (closes #25)
Fabien Potencier [Thu, 25 Mar 2010 10:38:43 +0000]
added a long-syntax for the set tag ({% set foo %}...{% endset %}) (closes #25)

14 years agoswitched to PHPUnit for testing
Fabien Potencier [Fri, 19 Mar 2010 14:32:39 +0000]
switched to PHPUnit for testing

14 years agoadded a note about i18n being only available in the latest version of Twig
Fabien Potencier [Fri, 19 Mar 2010 08:17:05 +0000]
added a note about i18n being only available in the latest version of Twig

14 years agochanged a title to be more explicit in the documentation
Fabien Potencier [Fri, 19 Mar 2010 08:15:31 +0000]
changed a title to be more explicit in the documentation

14 years agofixed the plural with a better patch than the previous one (closes #27)
Fabien Potencier [Fri, 19 Mar 2010 08:12:26 +0000]
fixed the plural with a better patch than the previous one (closes #27)

14 years agoadded count variable whenever the plural is used (closes #27)
Fabien Potencier [Fri, 19 Mar 2010 08:01:41 +0000]
added count variable whenever the plural is used (closes #27)

14 years agoadded the i18n extension (closes #23)
Fabien Potencier [Wed, 17 Mar 2010 19:39:34 +0000]
added the i18n extension (closes #23)

14 years agoadded missing copyright information in some file
Fabien Potencier [Wed, 17 Mar 2010 08:25:14 +0000]
added missing copyright information in some file

14 years agoadded a note in the documentation about using Twig with Xdebug
Fabien Potencier [Thu, 11 Mar 2010 15:21:04 +0000]
added a note in the documentation about using Twig with Xdebug

14 years agoupdated CHANGELOG
Fabien Potencier [Thu, 4 Mar 2010 10:15:13 +0000]
updated CHANGELOG

14 years agoadded support for escaping strategy in the autoescape tag (closes #19)
Fabien Potencier [Thu, 4 Mar 2010 10:08:16 +0000]
added support for escaping strategy in the autoescape tag (closes #19)

14 years agoTwig_Extension_Core is registration is hardcoded in to the Environment Extensions...
Ad van der Veer [Mon, 22 Feb 2010 15:38:17 +0000]
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

14 years agoadded an exception when the parser want to move after the EOF, and added a better...
Fabien Potencier [Fri, 19 Feb 2010 17:19:11 +0000]
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)