Fabien Potencier
e4d3f43664
added a replace filter
2010-10-01 14:16:02 +02:00
Fabien Potencier
3d622e472e
added the environment as an argument to initRuntime
2010-09-30 10:10:34 +02:00
Fabien Potencier
05578c8860
added Twig_Template::hasBlock() method
2010-09-30 10:10:16 +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
5a354ea859
made a small update to doc and rename a test file
2010-09-12 08:01:34 +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
Fabien Potencier
34b57fac5b
fixed filesystem loader should not view directory as a valid template ( closes #116 )
2010-09-06 08:56:03 +02:00
Hugo Hamon
81006eed21
[doc] fixed typos in several chapters
2010-09-03 12:04:18 +02:00
fivestar
a115a0667d
fixed SimpleTokenParser accepts comma(",") in grammar
2010-08-31 07:40:36 +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
Fabien Potencier
47c44e477c
fixed is operator (lexer did not tokenize 'foo.isactive' properly -- closes #102 )
2010-08-17 07:50:52 +02:00
Johnson Page
7fc7180c29
Fixed 'is' operator in CHANGELOG
2010-08-17 07:31:53 +02:00
Mark Story
6193ab1c9c
Fixing a few small typos/grammatical errors.
2010-08-17 07:30:45 +02:00
Fabien Potencier
9a9679be77
simplified code
2010-08-14 13:50:37 +02:00
Fabien Potencier
ebe8f237f8
updated doc ( closes #100 )
2010-08-14 09:05:04 +02:00
Fabien Potencier
5adc74c5dd
added version information in the doc
2010-08-13 19:17:13 +02:00
Fabien Potencier
1eef779e00
added a trans filter ( closes #85 )
2010-08-13 19:16:00 +02:00
Fabien Potencier
13738f0082
fixed unit tests
2010-08-13 18:37:33 +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
c0334a3e8d
added a note about the self variable before 0.9.9
2010-07-26 10:53:43 +02:00
Mark Story
c83bdefcb6
Fixing failing test in Twig_Tests_Node_Expression_FilterTest when mb extension is not installed. Fixes #93
2010-07-26 10:53:19 +02:00
Mark Story
df0651b9af
Updating documentation for addExtension()
2010-07-26 10:43:42 +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
b412ddf003
made inheritance test more robust
2010-07-05 16:58:45 +02:00
Fabien Potencier
35290cd5ad
fixed doc
2010-07-04 18:45:09 +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
v0.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
8da3723a60
moved fixtures directory
2010-06-28 12:04:24 +02:00
fivestar
336c7b1183
[doc] fixed typo in doc
2010-06-25 11:29:37 +02:00