Fabien Potencier
eee3bc2869
[doc] added a paragraph about IDEs support
2010-05-27 11:09:08 +02:00
Fabien Potencier
1a539913c0
[doc] added git instructions
2010-05-27 09:51:04 +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
2273a33d19
fixed typo in phpdoc
2010-05-26 13:19:48 +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
46ed296f56
made some small optimizations
2010-05-26 08:02:03 +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
7ab6dbc16b
disabled the cache when testing the sandbox
2010-05-25 17:58:14 +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
Fabien Potencier
32af68d904
added the filename when throwing an exception about a non-empty body in a child template
2010-05-20 11:30:20 +02:00
Fabien Potencier
a70939d4b8
added line number in exception
2010-05-20 10:56:56 +02:00
Fabien Potencier
9c253d699b
added an exception when a child template has a non-empty body (as it is always ignored when rendering)
2010-05-20 10:43:29 +02:00
Fabien Potencier
ac49dcb455
fixed some phpdoc
2010-05-20 10:42:48 +02:00
Fabien Potencier
bfb861badd
bumped version for development
2010-05-12 12:06:28 +02:00
Fabien Potencier
2ea01af065
updated CHANGELOG and bumped version to 0.9.6
v0.9.6
2010-05-12 12:05:37 +02:00
Fabien Potencier
2e1b12bcce
fixed variables defined outside a loop and for which the value changes in a for loop ( closes #43 )
2010-05-11 11:54:06 +02:00
Fabien Potencier
29edbed252
added the fixture file in error message to ease debugging tests
2010-05-11 11:52:25 +02:00
Fabien Potencier
4d8fc51112
changed coding standards
2010-05-11 10:38:48 +02:00
Fabien Potencier
276a3804c5
updated CHANGELOG
2010-05-10 19:33:30 +02:00
Fabien Potencier
550edefdef
made the test suite more compatible with old versions of PHPUnit
2010-05-10 19:30:00 +02:00
Fabien Potencier
dc7a48eed1
removed \ in the test suite to make it compatible with PHP 5.2
2010-05-10 19:26:49 +02:00
Fabien Potencier
889a846f50
removed \ in the test suite to make it compatible with PHP 5.2
2010-05-10 19:25:50 +02:00
Fabien Potencier
6c4ce225b8
made a small optimization
2010-05-10 17:21:55 +02:00
Fabien Potencier
79e5058611
added support for __call() in expression resolution ( closes #2 )
...
The new algorithm for object method resolution is now the following:
* get all methods declared for `$object` using ReflectionObject::getMethods()
* check if `$item` is in the list of method names
* check if `get$item` is in the list of method names
* check if `__call` is defined and pass `$item` as the method name
2010-05-10 12:47:39 +02:00
Fabien Potencier
362613c302
fixed node visiting for macros (macros are now visited by visitors as any other node)
2010-05-06 08:35:36 +02:00
Fabien Potencier
9bc1acbc23
fixed Twig_Node_Filter::__toString()
2010-05-06 08:21:17 +02:00
Fabien Potencier
b030645847
fixed Twig_Node_Module::__toString() to include information about blocks and macros
2010-05-06 08:14:28 +02:00
Fabien Potencier
0b38082d58
removed obsolete usage of setCurrentBlock() ( closes #47 )
2010-05-06 07:53:27 +02:00
Fabien Potencier
23a8d39d66
fixed nested block definitions with a parent call ( closes #45 )
2010-04-29 07:58:52 +02:00
Fabien Potencier
c1c725171e
added an exception when trying to nest block definitions ( closes #45 )
2010-04-28 19:51:08 +02:00
Fabien Potencier
2e84b179a0
optimized for loop generation
2010-04-14 12:05:33 +02:00
Fabien Potencier
ccdbb1f567
tweaked For node temporary variable names ( closes #42 )
2010-04-13 11:45:01 +02:00
Fabien Potencier
8651608f21
[doc] added a recipe about i18n and xgettext
2010-04-07 15:56:38 +02:00
James Logsdon
0593d7fb48
fixed test that referenced a class from another test
2010-03-29 09:04:43 +02:00
Fabien Potencier
075f541547
added the cycle filter ( closes #26 )
2010-03-28 15:25:15 +02:00
Fabien Potencier
6b6d515030
fixed the Lexer when mbstring.func_overload is used with an mbstring.internal_encoding different from ASCII ( closes #32 )
2010-03-28 15:10:36 +02:00
Fabien Potencier
8f065b1f08
added a note about the without loop statement introduced in 0.9.5 ( closes #34 )
2010-03-28 14:28:10 +02:00
Fabien Potencier
12ccfd6e21
fixed documentation of the in operator
2010-03-28 14:24:08 +02:00
Fabien Potencier
deee05c5fa
fixed doc for the multiply operator which is not able to deal with strings ( closes #29 )
2010-03-28 10:12:04 +02:00
Fabien Potencier
d84972e1a6
added a note about variable resolution and PHP4-style constructors (refs #33 )
2010-03-28 09:49:09 +02:00
Fabien Potencier
49add7a61d
updated documentation for the + operator ( closes #30 )
2010-03-25 13:29:44 +01:00
Fabien Potencier
522001fdbb
added a note about the twig extensions repository in the doc
2010-03-25 12:09:01 +01:00
Fabien Potencier
e4903e052b
fixed doc
2010-03-25 12:03:27 +01:00
Fabien Potencier
029bb5b5a8
added a long-syntax for the set tag ({% set foo %}...{% endset %}) ( closes #25 )
2010-03-25 11:38:43 +01:00
Fabien Potencier
7e8cdd7b4f
switched to PHPUnit for testing
2010-03-19 15:32:39 +01:00