Commit Graph

306 Commits

Author SHA1 Message Date
henrikbjorn 56caee0937 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.
2010-10-01 19:17:22 +02:00
Fabien Potencier 15f3276676 changed the implementation of template inheritance 2010-10-01 14:17:16 +02:00
Fabien Potencier e4d3f43664 added a replace filter 2010-10-01 14:16:02 +02:00
Angelo Vargas 1230c210dc fixed error handling for if tag when a syntax error occurs within a subparse process (closes #131) 2010-09-23 09:11:45 +02:00
Arnaud Le Blanc f7febc0c2c 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.
2010-09-20 11:17:03 +02:00
Arnaud Le Blanc 4541e88e51 fixed js escaper to be stricter, whilelist-based js escaper (closes #114) 2010-09-14 09:39:10 +02:00
Fabien Potencier 1cf01ce927 added a constant filter (refs #120) 2010-09-12 08:00:21 +02:00
Mark Story 1e9493df29 added the constant() test (closes #120) 2010-09-12 07:50:05 +02:00
Mark Story 2ff6cedbf8 fixed objects with __toString() not being autoescaped (fixes #111) 2010-09-12 07:44:26 +02:00
Arnaud Le Blanc 839f16145e Fix for bug #101 : make magic calls case-sensitive in subscript expressions (closes #101) 2010-08-17 08:01:12 +02:00
Johnson Page 7fc7180c29 Fixed 'is' operator in CHANGELOG 2010-08-17 07:31:53 +02:00
Fabien Potencier 1eef779e00 added a trans filter (closes #85) 2010-08-13 19:16:00 +02:00
Fabien Potencier 5d6e7e2e01 added 'test' feature via the 'is' operator (closes #88) 2010-08-13 16:22:54 +02:00
Fabien Potencier 30de2dae95 removed the debug tag (should be done in an extension) 2010-08-13 08:13:54 +02:00
Fabien Potencier 2595e7b320 fixed trans tag when no vars are used in plural form (closes #98) 2010-08-12 22:22:56 +02:00
Fabien Potencier 478fe2ed18 fixed inheritance 2010-06-29 16:28:02 +02:00
Fabien Potencier 80af31538a added the special _context variable to reference the current context 2010-06-29 08:33:25 +02:00
Fabien Potencier 74dc1596df fixed Twig_Template::getAttribute() for protected properties (closes #80) 2010-06-29 07:26:49 +02:00
Fabien Potencier 0f66b5a0ab bumped version for dev 2010-06-28 21:53:19 +02:00
Fabien Potencier 6886b2ca0b updated CHANGELOG and bumped version to 0.9.8 2010-06-28 21:43:41 +02:00
Fabien Potencier 2c1eb31021 added a way to translate strings coming from a variable ({% trans var %}) (closes #69) 2010-06-28 15:20:10 +02:00
Fabien Potencier cccaf5583a fixed trans tag when used with the Escaper extension (refs #75) 2010-06-28 14:52:43 +02:00
Fabien Potencier e179192911 fixed default cache umask (closes #76) 2010-06-28 12:39:10 +02:00
Fabien Potencier ad052d8ed2 removed Twig_Template instances from the debug tag output (closes #73) 2010-06-28 12:37:12 +02:00
Fabien Potencier 1698c8834d fixed variable that defines __isset() (closes #71) 2010-06-28 12:24:00 +02:00
Fabien Potencier e596d2136e fixed set tag when used with a capture (closes #70) 2010-06-16 20:04:39 +02:00
Fabien Potencier 7d641d61f6 fixed type hinting for Twig_Environment::addFilter() method 2010-06-14 13:18:40 +02:00
Fabien Potencier fc0387606c bumped version for development 2010-06-12 18:31:37 +02:00
Fabien Potencier a7a5f1d975 updated CHANGELOG and bumped version to 0.9.7 2010-06-12 18:26:15 +02:00
Fabien Potencier 2ce6b27fe4 changed the default value of strict_variables to false 2010-06-12 16:47:14 +02:00
Fabien Potencier a8031fc96a added self variable, simplified macro management, added some more documentation for macros (closes #61) 2010-06-12 11:27:41 +02:00
Fabien Potencier 7e926fc235 added Twig_Template instance support to the include tag 2010-06-10 10:08:38 +02:00
Fabien Potencier 36c629cc86 updated CHANGELOG 2010-06-09 23:10:09 +02:00
Fabien Potencier 0f51a54fc9 added support for dynamic and conditional inheritance ({% extends some_var %} and {% extends standalone ? minimum : base %}) 2010-06-09 23:05:45 +02:00
Fabien Potencier 8809a1cab1 changed as to = for the set tag and removed the need for as in short-notation of the block tag (closes #54) 2010-06-09 08:20:51 +02:00
Fabien Potencier 0ca17abc71 added a grammar to easily describe a tag syntax with a string 2010-06-08 16:31:06 +02:00
Fabien Potencier d47902c7b9 fixed the for tag for large arrays (closes #64 - based on an idea from gwilym - aeb56f9f966bd23b77d35c87999be0606dbb3f47) 2010-06-07 11:04:23 +02:00
Fabien Potencier 56318ee4a8 made a big refactoring of Twig internals (and added a bunch of unit tests and phpdoc, fixes #53) 2010-06-03 08:12:58 +02:00
Fabien Potencier 28bbe6f2de renamed ignore_invalid_vars to strict_variables 2010-05-28 07:59:29 +02:00
Fabien Potencier 92ae9ac854 fixed iterator_to_array() usage (closes #57) 2010-05-27 18:42:51 +02:00
Fabien Potencier 1847634d0c changed the date filter to support any date format supported by DateTime (closes #56) 2010-05-27 18:32:02 +02:00
Fabien Potencier 63a52ae7de added ignore_invalid_variables setting to throw an exception when an invalid variable is used in a template 2010-05-26 13:56:43 +02:00
Fabien Potencier c7fbd4307a added the lexer, parser, and compiler as arguments to the Twig_Environment constructor 2010-05-26 13:52:49 +02:00
Fabien Potencier dc80fe13c8 changed the cache option to only accepts an explicit path to a cache directory or false 2010-05-26 13:34:30 +02:00
Fabien Potencier 255f0fb80d added a way to add token parsers, filters, and visitors without creating an extension 2010-05-26 11:28:06 +02:00
Fabien Potencier c4e80ee525 added Twig_FilterInterface 2010-05-26 11:26:38 +02:00
Fabien Potencier 6d39e22499 added two interfaces: Twig_NodeInterface and Twig_TokenParserInterface 2010-05-26 07:49:34 +02:00
Fabien Potencier d4534e8419 changed the generated code to match the new coding standards 2010-05-25 18:11:01 +02:00
Fabien Potencier b63205a6c4 fixed sandbox mode (__toString() method check was not enforced if called implicitly from a simple statement like {{ article }}) 2010-05-25 18:01:55 +02:00
Fabien Potencier 7603ef193b changed the grammar for the short-notation of the block tag to be more consistent with other tags 2010-05-25 16:43:30 +02:00