Commit Graph

231 Commits

Author SHA1 Message Date
Fabien Potencier 47c44e477c fixed is operator (lexer did not tokenize 'foo.isactive' properly -- closes #102) 2010-08-17 07:50:52 +02:00
Fabien Potencier 9a9679be77 simplified code 2010-08-14 13:50:37 +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 5213b482dd removed obsolete code 2010-08-13 08:20:22 +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 8a38a51c1e fixed race condition when writing template cache on disk (closes #97) 2010-08-12 21:56:30 +02:00
Fabien Potencier 9962161441 added a new shortcut in the SimpleTokenParser 2010-07-12 18:28:53 +02:00
Fabien Potencier 277c4430c6 fixed template cloning problem with inheritance 2010-07-12 17:48:10 +02:00
Fabien Potencier 288ba6789e fixed typos 2010-07-06 16:11:56 +02:00
Fabien Potencier 3601d729b3 fixed inheritance bug (closes #81) 2010-07-06 13:48:59 +02:00
Fabien Potencier 11867562ea made the reflection cache global 2010-07-05 17:11:06 +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 178b38940b fixed typo 2010-06-28 12:12:31 +02:00
Fabien Potencier 032b503c23 simplified the code a bit 2010-06-24 23:01:49 +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 300f2b1560 removed Twig_Macro and Twig_Resource as they are not needed anymore 2010-06-12 17:36:03 +02:00
Fabien Potencier 698b522eda made a small refactoring 2010-06-12 17:28:34 +02:00
Fabien Potencier 2ce6b27fe4 changed the default value of strict_variables to false 2010-06-12 16:47:14 +02:00
Fabien Potencier 57f2853320 removed getName() method in Twig_Template 2010-06-12 15:43:36 +02:00
Fabien Potencier cb34e7cb97 made a big performance optimization when strict_variables is not set 2010-06-12 15:22:07 +02:00
Fabien Potencier fcd97c61f0 updated phpdoc 2010-06-12 15:05:37 +02:00
Fabien Potencier c0bd29b82d added some phpdoc 2010-06-12 14:54:30 +02:00
Fabien Potencier dc6806f489 removed PHP 5.3 keyword 2010-06-12 14:09:15 +02:00
Fabien Potencier cc37d83b21 fixed getContext() and getAttribute() when a property value exist but is null (closes #67) 2010-06-12 13:01:26 +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 c017a93e77 fixed a bug when a template with a layout is reused more than one time 2010-06-11 12:10:32 +02:00
Fabien Potencier f87df8a2fb fixed escaping for filtered object attributes (closes #59) 2010-06-11 07:20:38 +02:00
Fabien Potencier 40b16eccf8 fixed infinite loop in inheritance (closes #66) 2010-06-11 07:10:43 +02:00
Fabien Potencier fa57407290 fixed \ before classes 2010-06-10 15:37:24 +02:00
Fabien Potencier 1aa60bfdd5 added some helper method to build common nodes more easily (experimental) 2010-06-10 10:51:31 +02:00
Fabien Potencier 7e926fc235 added Twig_Template instance support to the include tag 2010-06-10 10:08:38 +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 9519a084f1 fixed toXml() method when some nodes are null 2010-06-09 16:03:58 +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 68b966516c made parseArguments autonomous 2010-06-08 11:38:55 +02:00