web/konrad/twig.git
14 years agofixed SimpleTokenParser accepts comma(",") in grammar
fivestar [Tue, 31 Aug 2010 02:32:37 +0000]
fixed SimpleTokenParser accepts comma(",") in grammar

14 years agoFix for bug #101 : make magic calls case-sensitive in subscript expressions (closes...
Arnaud Le Blanc [Sun, 15 Aug 2010 20:03:36 +0000]
Fix for bug #101 : make magic calls case-sensitive in subscript expressions (closes #101)

14 years agofixed is operator (lexer did not tokenize 'foo.isactive' properly -- closes #102)
Fabien Potencier [Tue, 17 Aug 2010 05:49:57 +0000]
fixed is operator (lexer did not tokenize 'foo.isactive' properly -- closes #102)

14 years agoFixed 'is' operator in CHANGELOG
Johnson Page [Mon, 16 Aug 2010 02:17:36 +0000]
Fixed 'is' operator in CHANGELOG

14 years agoFixing a few small typos/grammatical errors.
Mark Story [Mon, 16 Aug 2010 03:49:29 +0000]
Fixing a few small typos/grammatical errors.

14 years agosimplified code
Fabien Potencier [Sat, 14 Aug 2010 11:50:37 +0000]
simplified code

14 years agoupdated doc (closes #100)
Fabien Potencier [Sat, 14 Aug 2010 07:05:04 +0000]
updated doc (closes #100)

14 years agoadded version information in the doc
Fabien Potencier [Fri, 13 Aug 2010 17:17:13 +0000]
added version information in the doc

14 years agoadded a trans filter (closes #85)
Fabien Potencier [Fri, 13 Aug 2010 17:15:57 +0000]
added a trans filter (closes #85)

14 years agofixed unit tests
Fabien Potencier [Fri, 13 Aug 2010 16:37:33 +0000]
fixed unit tests

14 years agoadded 'test' feature via the 'is' operator (closes #88)
Fabien Potencier [Fri, 13 Aug 2010 14:15:33 +0000]
added 'test' feature via the 'is' operator (closes #88)

14 years agoremoved obsolete code
Fabien Potencier [Fri, 13 Aug 2010 06:20:22 +0000]
removed obsolete code

14 years agoremoved the debug tag (should be done in an extension)
Fabien Potencier [Fri, 13 Aug 2010 06:13:54 +0000]
removed the debug tag (should be done in an extension)

14 years agofixed trans tag when no vars are used in plural form (closes #98)
Fabien Potencier [Thu, 12 Aug 2010 20:22:56 +0000]
fixed trans tag when no vars are used in plural form (closes #98)

14 years agofixed race condition when writing template cache on disk (closes #97)
Fabien Potencier [Thu, 12 Aug 2010 19:56:30 +0000]
fixed race condition when writing template cache on disk (closes #97)

14 years agoadded a note about the self variable before 0.9.9
Fabien Potencier [Mon, 26 Jul 2010 08:53:43 +0000]
added a note about the self variable before 0.9.9

14 years agoFixing failing test in Twig_Tests_Node_Expression_FilterTest when mb extension is...
Mark Story [Sat, 24 Jul 2010 16:23:33 +0000]
Fixing failing test in Twig_Tests_Node_Expression_FilterTest when mb extension is not installed.  Fixes #93

14 years agoUpdating documentation for addExtension()
Mark Story [Sat, 24 Jul 2010 03:38:26 +0000]
Updating documentation for addExtension()

14 years agoadded a new shortcut in the SimpleTokenParser
Fabien Potencier [Mon, 12 Jul 2010 16:28:53 +0000]
added a new shortcut in the SimpleTokenParser

14 years agofixed template cloning problem with inheritance
Fabien Potencier [Mon, 12 Jul 2010 15:48:10 +0000]
fixed template cloning problem with inheritance

14 years agofixed typos
Fabien Potencier [Tue, 6 Jul 2010 14:11:56 +0000]
fixed typos

14 years agofixed inheritance bug (closes #81)
Fabien Potencier [Tue, 6 Jul 2010 11:48:59 +0000]
fixed inheritance bug (closes #81)

14 years agomade the reflection cache global
Fabien Potencier [Mon, 5 Jul 2010 15:11:06 +0000]
made the reflection cache global

14 years agomade inheritance test more robust
Fabien Potencier [Mon, 5 Jul 2010 14:58:45 +0000]
made inheritance test more robust

14 years agofixed doc
Fabien Potencier [Sun, 4 Jul 2010 16:45:09 +0000]
fixed doc

14 years agofixed inheritance
Fabien Potencier [Tue, 29 Jun 2010 14:28:02 +0000]
fixed inheritance

14 years agoadded the special _context variable to reference the current context
Fabien Potencier [Tue, 29 Jun 2010 06:33:25 +0000]
added the special _context variable to reference the current context

14 years agofixed Twig_Template::getAttribute() for protected properties (closes #80)
Fabien Potencier [Tue, 29 Jun 2010 05:26:49 +0000]
fixed Twig_Template::getAttribute() for protected properties (closes #80)

14 years agobumped version for dev
Fabien Potencier [Mon, 28 Jun 2010 19:53:19 +0000]
bumped version for dev

14 years agoupdated CHANGELOG and bumped version to 0.9.8
Fabien Potencier [Mon, 28 Jun 2010 19:43:41 +0000]
updated CHANGELOG and bumped version to 0.9.8

14 years agoadded a way to translate strings coming from a variable ({% trans var %}) (closes...
Fabien Potencier [Mon, 28 Jun 2010 13:10:52 +0000]
added a way to translate strings coming from a variable ({% trans var %}) (closes #69)

14 years agofixed trans tag when used with the Escaper extension (refs #75)
Fabien Potencier [Mon, 28 Jun 2010 12:46:55 +0000]
fixed trans tag when used with the Escaper extension (refs #75)

14 years agofixed default cache umask (closes #76)
Fabien Potencier [Mon, 28 Jun 2010 10:39:10 +0000]
fixed default cache umask (closes #76)

14 years agoremoved Twig_Template instances from the debug tag output (closes #73)
Fabien Potencier [Mon, 28 Jun 2010 10:36:53 +0000]
removed Twig_Template instances from the debug tag output (closes #73)

14 years agofixed variable that defines __isset() (closes #71)
Fabien Potencier [Mon, 28 Jun 2010 10:24:00 +0000]
fixed variable that defines __isset() (closes #71)

14 years agofixed typo
Fabien Potencier [Mon, 28 Jun 2010 10:12:31 +0000]
fixed typo

14 years agomoved fixtures directory
Fabien Potencier [Mon, 28 Jun 2010 10:04:24 +0000]
moved fixtures directory

14 years ago[doc] fixed typo in doc
fivestar [Fri, 25 Jun 2010 09:08:58 +0000]
[doc] fixed typo in doc

14 years agosimplified the code a bit
Fabien Potencier [Thu, 24 Jun 2010 21:01:49 +0000]
simplified the code a bit

14 years agofixed set tag when used with a capture (closes #70)
Fabien Potencier [Wed, 16 Jun 2010 18:04:39 +0000]
fixed set tag when used with a capture (closes #70)

14 years agofixed type hinting for Twig_Environment::addFilter() method
Fabien Potencier [Mon, 14 Jun 2010 11:18:40 +0000]
fixed type hinting for Twig_Environment::addFilter() method

14 years agobumped version for development
Fabien Potencier [Sat, 12 Jun 2010 16:31:37 +0000]
bumped version for development

14 years agoupdated CHANGELOG and bumped version to 0.9.7
Fabien Potencier [Sat, 12 Jun 2010 16:26:15 +0000]
updated CHANGELOG and bumped version to 0.9.7

14 years agoremoved Twig_Macro and Twig_Resource as they are not needed anymore
Fabien Potencier [Sat, 12 Jun 2010 15:36:03 +0000]
removed Twig_Macro and Twig_Resource as they are not needed anymore

14 years agomade a small refactoring
Fabien Potencier [Sat, 12 Jun 2010 15:28:34 +0000]
made a small refactoring

14 years agochanged the default value of strict_variables to false
Fabien Potencier [Sat, 12 Jun 2010 14:46:54 +0000]
changed the default value of strict_variables to false

14 years agoremoved getName() method in Twig_Template
Fabien Potencier [Sat, 12 Jun 2010 13:43:21 +0000]
removed getName() method in Twig_Template

14 years agomade a big performance optimization when strict_variables is not set
Fabien Potencier [Sat, 12 Jun 2010 13:14:03 +0000]
made a big performance optimization when strict_variables is not set

14 years agoupdated phpdoc
Fabien Potencier [Sat, 12 Jun 2010 13:05:37 +0000]
updated phpdoc

14 years agoadded some phpdoc
Fabien Potencier [Sat, 12 Jun 2010 12:54:30 +0000]
added some phpdoc

14 years agoremoved PHP 5.3 keyword
Fabien Potencier [Sat, 12 Jun 2010 12:09:15 +0000]
removed PHP 5.3 keyword

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