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
Fabien Potencier
91fe202fbe
added a note about i18n being only available in the latest version of Twig
2010-03-19 09:17:05 +01:00
Fabien Potencier
1a3fe13098
changed a title to be more explicit in the documentation
2010-03-19 09:15:31 +01:00
Fabien Potencier
6a8e2d5d24
fixed the plural with a better patch than the previous one ( closes #27 )
2010-03-19 09:12:26 +01:00
Fabien Potencier
3c7b226610
added count variable whenever the plural is used ( closes #27 )
2010-03-19 09:01:41 +01:00
Fabien Potencier
4625d2f861
added the i18n extension ( closes #23 )
2010-03-17 20:39:34 +01:00
Fabien Potencier
11806d4a66
added missing copyright information in some file
2010-03-17 09:25:14 +01:00
Fabien Potencier
23ee9f7e3f
added a note in the documentation about using Twig with Xdebug
2010-03-11 16:21:04 +01:00
Fabien Potencier
94151eab8d
updated CHANGELOG
2010-03-04 11:15:13 +01:00
Fabien Potencier
6c7d5603ea
added support for escaping strategy in the autoescape tag ( closes #19 )
2010-03-04 11:08:16 +01:00
Ad van der Veer
cf09f2644b
Twig_Extension_Core is registration is hardcoded in to the Environment Extensions array at key 0 while it should be registered at key core as can be seen in the addExtension method
2010-03-04 10:24:30 +01:00
Fabien Potencier
d2b44781e3
added an exception when the parser want to move after the EOF, and added a better error when a if tag is not closed properly ( closes #12 )
2010-02-19 18:19:25 +01:00
Fabien Potencier
4d5ce3ddf8
fixed previous commit
2010-02-18 17:41:48 +01:00
Fabien Potencier
35a405beac
fixed twig_length_filter ( closes #14 )
2010-02-18 17:40:16 +01:00
Fabien Potencier
c0f4c01d9a
fixed twig_capitalize_string_filter() bug ( closes #16 )
2010-02-10 09:37:09 +01:00
Fabien Potencier
11c00dccf3
updated CHANGELOG
2010-01-26 08:18:46 +01:00
Fabien Potencier
cd4cde952d
fixed Lexer when a template has a big chunk of text between/in a block (due to a limitation of preg_match maximum length of matching - closes #10 )
2010-01-26 08:13:46 +01:00
Fabien Potencier
fc3a59dd32
fixed typo
2010-01-22 18:50:37 +01:00
fabien
29d16d9940
bumped version for development
...
git-svn-id: http://svn.twig-project.org/trunk@232 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-20 10:15:36 +00:00
fabien
83041be523
updated CHANGELOG and bumped version
...
git-svn-id: http://svn.twig-project.org/trunk@228 93ef8e89-cb99-4229-a87c-7fa0fa45744b
v0.9.5
2010-01-20 09:38:50 +00:00
fabien
18933dfbb6
partially reverted the previous commit
...
git-svn-id: http://svn.twig-project.org/trunk@227 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-14 12:36:32 +00:00
fabien
8099060509
fixed Twig_Token::getTypeAsString ( closes #53 )
...
git-svn-id: http://svn.twig-project.org/trunk@226 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-14 12:35:14 +00:00
fabien
6344bf535e
change usage of realpath because of some bug with PHP 5.2.4
...
git-svn-id: http://svn.twig-project.org/trunk@225 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-13 14:43:33 +00:00
fabien
47d5f85c11
added a not in the CHANGELOG about flushing the template cache
...
git-svn-id: http://svn.twig-project.org/trunk@224 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 16:15:16 +00:00
fabien
2c2b10097b
added a getName() method in the default Template abstract class
...
git-svn-id: http://svn.twig-project.org/trunk@223 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 16:14:59 +00:00
fabien
58c7e55ce4
added a missing accessor in Twig_Node_Set
...
git-svn-id: http://svn.twig-project.org/trunk@222 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 16:12:44 +00:00
fabien
53ebfec20c
fixed Twig_Node_Include
...
git-svn-id: http://svn.twig-project.org/trunk@221 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 15:26:17 +00:00
fabien
84bf02bbc2
updated CHANGELOG
...
git-svn-id: http://svn.twig-project.org/trunk@220 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 15:20:34 +00:00
fabien
643114be06
fixed Twig_Node_Set
...
git-svn-id: http://svn.twig-project.org/trunk@219 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 15:01:33 +00:00