web/konrad/twig.git
14 years agoupdated CHANGELOG
Fabien Potencier [Sun, 7 Nov 2010 20:45:11 +0000]
updated CHANGELOG

14 years agofixed unary expressions
Fabien Potencier [Sun, 7 Nov 2010 20:44:05 +0000]
fixed unary expressions

14 years agoRemove is_escaper flag from urlencode
Jordi Boggiano [Tue, 5 Oct 2010 21:51:42 +0000]
Remove is_escaper flag from urlencode

urlencode is an url escaper but not an html escaper so I don't think it should be exempt from auto-escaping

14 years agoFix replace filter name in documentation
ornicar [Sun, 7 Nov 2010 19:26:32 +0000]
Fix replace filter name in documentation

14 years agoupdate docs for automatic escaping
Arnaud Le Blanc [Sun, 7 Nov 2010 17:23:31 +0000]
update docs for automatic escaping

14 years agoadded a note about using rewind() after look()
Fabien Potencier [Sun, 7 Nov 2010 13:37:08 +0000]
added a note about using rewind() after look()

14 years agofixed child templates (with an extend tag) that uses one or more imports
Fabien Potencier [Sun, 7 Nov 2010 13:31:47 +0000]
fixed child templates (with an extend tag) that uses one or more imports

14 years agofixed documentation and added infix notation for in (already supported for is)
Fabien Potencier [Sun, 7 Nov 2010 13:21:10 +0000]
fixed documentation and added infix notation for in (already supported for is)

14 years agoupdated CHANGELOG
Fabien Potencier [Sun, 7 Nov 2010 09:04:07 +0000]
updated CHANGELOG

14 years agochanged how nl2br is implemented in tests to better reflect how it should be done...
Fabien Potencier [Sun, 7 Nov 2010 08:58:28 +0000]
changed how nl2br is implemented in tests to better reflect how it should be done in userland code

14 years agoremoved @version phpdoc attribute
Fabien Potencier [Sun, 7 Nov 2010 08:26:25 +0000]
removed @version phpdoc attribute

14 years agofixed CS
Fabien Potencier [Sun, 7 Nov 2010 08:17:24 +0000]
fixed CS

14 years agodeeply mark expressions as safe (e.g. a conditonal expression is safe if both operand...
Arnaud Le Blanc [Sat, 6 Nov 2010 02:49:37 +0000]
deeply mark expressions as safe (e.g. a conditonal expression is safe if both operands are literals)

14 years agosupport for specifying the escaping type of a filter
Arnaud Le Blanc [Sat, 6 Nov 2010 02:36:14 +0000]
support for specifying the escaping type of a filter

14 years agoChanged escaping rules (switched to post-escaping)
Arnaud Le Blanc [Sun, 22 Aug 2010 00:30:25 +0000]
Changed escaping rules (switched to post-escaping)

Expression in Print nodes are always escaped before being printed,
except in two conditions :
  * if the expression is an Expression_Constant node
  * if the last filter in the chain is an escaper

14 years agomade the include tag more flexible
Fabien Potencier [Mon, 1 Nov 2010 03:24:32 +0000]
made the include tag more flexible

14 years agofixed a unit test so that it works for more PHP versions
Fabien Potencier [Tue, 26 Oct 2010 17:49:31 +0000]
fixed a unit test so that it works for more PHP versions

14 years agofixed typo
Fabien Potencier [Sat, 23 Oct 2010 08:38:18 +0000]
fixed typo

14 years agoOptimize/uniformalize the multibyte filters
Jordi Boggiano [Thu, 21 Oct 2010 18:52:26 +0000]
Optimize/uniformalize the multibyte filters

14 years agoRemoved unnecessary twig_constant_filter function
Jordi Boggiano [Thu, 21 Oct 2010 18:17:56 +0000]
Removed unnecessary twig_constant_filter function

14 years agofixed typos in the docs
Fabien Potencier [Tue, 19 Oct 2010 11:19:52 +0000]
fixed typos in the docs

14 years agofixed typo in the doc
Fabien Potencier [Mon, 11 Oct 2010 10:27:59 +0000]
fixed typo in the doc

14 years agoupdated doc
Fabien Potencier [Wed, 6 Oct 2010 13:11:15 +0000]
updated doc

14 years agorenamed urlencode to url_encode
Fabien Potencier [Wed, 6 Oct 2010 13:10:20 +0000]
renamed urlencode to url_encode

14 years agoAdded json_encode filter
Jordi Boggiano [Tue, 5 Oct 2010 21:23:45 +0000]
Added json_encode filter

14 years agoFixed PHP 5.3 namespace dependency (Issues a warning in PHP 5.2).
Matt Agar [Mon, 4 Oct 2010 22:58:35 +0000]
Fixed PHP 5.3 namespace dependency (Issues a warning in PHP 5.2).

14 years agochanged the way to access nodes and attributes from a node
Fabien Potencier [Sat, 2 Oct 2010 06:23:54 +0000]
changed the way to access nodes and attributes from a node

Before:
  Nodes were accessed via node properties ($node->body)
  Attributes were accessed via node array access ($node['name'])

After:
  Nodes are accessed via getNode(), setNode(), ... ($node->getNode('body'))
  Attributes are accessed via getAttribute(), setAttribute(), ... ($node->getAttribute('name'))

The change was necessary because of side-effects. This is one more time the
demonstration that being explicit is always better than magic ;)

14 years agofixed typo
Fabien Potencier [Fri, 1 Oct 2010 18:34:31 +0000]
fixed typo

14 years agoadded a note to get an extension reference
Fabien Potencier [Fri, 1 Oct 2010 18:28:02 +0000]
added a note to get an extension reference

14 years agofixed typo
Fabien Potencier [Fri, 1 Oct 2010 18:13:25 +0000]
fixed typo

14 years agorenamed |safe to |raw to avoid unnecesarry confusion about what the tags does.
henrikbjorn [Fri, 1 Oct 2010 11:48:52 +0000]
renamed |safe to |raw to avoid unnecesarry confusion about what the tags does.

Discussion can be viewed here http://groups.google.com/group/symfony-devs/browse_thread/thread/b927063310c74411. All tests pass.

14 years agochanged the implementation of template inheritance
Fabien Potencier [Fri, 1 Oct 2010 12:11:58 +0000]
changed the implementation of template inheritance

14 years agoremoved obsolete code
Fabien Potencier [Fri, 1 Oct 2010 10:08:57 +0000]
removed obsolete code

14 years agoadded a replace filter
Fabien Potencier [Fri, 1 Oct 2010 10:08:46 +0000]
added a replace filter

14 years agoadded the environment as an argument to initRuntime
Fabien Potencier [Thu, 30 Sep 2010 08:10:34 +0000]
added the environment as an argument to initRuntime

14 years agoadded Twig_Template::hasBlock() method
Fabien Potencier [Thu, 30 Sep 2010 08:10:16 +0000]
added Twig_Template::hasBlock() method

14 years agofixed error handling for if tag when a syntax error occurs within a subparse process...
Angelo Vargas [Thu, 23 Sep 2010 01:33:55 +0000]
fixed error handling for if tag when a syntax error occurs within a subparse process (closes #131)

14 years agoadded token parser broker (closes #104)
Arnaud Le Blanc [Sun, 12 Sep 2010 17:36:40 +0000]
added token parser broker (closes #104)

Twig_Extension::getTokenParsers() can now return an array of
TokenParsers, or a Twig_TokenParserBrokerInterface. This allows
extensions to implement custom logics for resolving token parsers.

14 years agofixed js escaper to be stricter, whilelist-based js escaper (closes #114)
Arnaud Le Blanc [Tue, 24 Aug 2010 06:22:05 +0000]
fixed js escaper to be stricter, whilelist-based js escaper (closes #114)

14 years agomade a small update to doc and rename a test file
Fabien Potencier [Sun, 12 Sep 2010 06:01:34 +0000]
made a small update to doc and rename a test file

14 years agoadded a constant filter (refs #120)
Fabien Potencier [Sun, 12 Sep 2010 05:59:41 +0000]
added a constant filter (refs #120)

14 years agoadded the constant() test (closes #120)
Mark Story [Sat, 11 Sep 2010 20:41:50 +0000]
added the constant() test (closes #120)

14 years agofixed objects with __toString() not being autoescaped (fixes #111)
Mark Story [Tue, 24 Aug 2010 03:02:57 +0000]
fixed objects with __toString() not being autoescaped (fixes #111)

14 years agofixed filesystem loader should not view directory as a valid template (closes #116)
Fabien Potencier [Mon, 6 Sep 2010 06:56:03 +0000]
fixed filesystem loader should not view directory as a valid template (closes #116)

14 years ago[doc] fixed typos in several chapters
Hugo Hamon [Sun, 22 Aug 2010 14:34:59 +0000]
[doc] fixed typos in several chapters

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)