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
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
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
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
23a8d39d66
fixed nested block definitions with a parent call ( closes #45 )
2010-04-29 07:58:52 +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
7e8cdd7b4f
switched to PHPUnit for testing
2010-03-19 15:32:39 +01:00
Fabien Potencier
6c7d5603ea
added support for escaping strategy in the autoescape tag ( closes #19 )
2010-03-04 11:08:16 +01:00
fabien
b8cf67ab51
removed obsolete code in fixtures
...
git-svn-id: http://svn.twig-project.org/trunk@215 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-08 13:14:39 +00:00
fabien
575ed89d19
added the // operator (like in Jinja2, closes #44 )
...
git-svn-id: http://svn.twig-project.org/trunk@208 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2010-01-06 08:19:36 +00:00
fabien
410a517348
added missing test
...
git-svn-id: http://svn.twig-project.org/trunk@203 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 14:13:46 +00:00
fabien
7f6f7bb287
added support for a trailing , when defining arrays
...
git-svn-id: http://svn.twig-project.org/trunk@196 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 07:35:57 +00:00
fabien
5f049939ef
fixed escaping when getattr nodes are used
...
git-svn-id: http://svn.twig-project.org/trunk@194 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 07:06:39 +00:00
fabien
490913c103
added a unit test to prove that blocks are escaped
...
git-svn-id: http://svn.twig-project.org/trunk@193 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 06:47:45 +00:00
fabien
8d1648e5bd
fixed error reporting in integration tests
...
git-svn-id: http://svn.twig-project.org/trunk@192 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-22 06:44:59 +00:00
fabien
80871d95bc
added some tests
...
git-svn-id: http://svn.twig-project.org/trunk@191 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-15 14:37:47 +00:00
fabien
e2c7b2fadd
added a way to specify variables to pass to an included template
...
git-svn-id: http://svn.twig-project.org/trunk@190 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-15 08:01:13 +00:00
fabien
dfca5a153a
fixed typo in a test fixture
...
git-svn-id: http://svn.twig-project.org/trunk@185 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-15 06:53:28 +00:00
fabien
9d4ceb4563
changed the automatic-escaping rules to be more sensible (the documentation lists all the rules)
...
git-svn-id: http://svn.twig-project.org/trunk@182 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-14 16:57:54 +00:00
fabien
2ab4dd5be0
added the .. operator as a syntactic sugar for the range filter when the step is 1
...
git-svn-id: http://svn.twig-project.org/trunk@173 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 15:13:38 +00:00
fabien
95d5cefdd7
added the in operator
...
git-svn-id: http://svn.twig-project.org/trunk@170 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 13:03:07 +00:00
fabien
4c55be6dda
added tests for the in filter
...
git-svn-id: http://svn.twig-project.org/trunk@169 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:55:04 +00:00
fabien
516a5d7a85
added test for DateTime support in the date filter
...
git-svn-id: http://svn.twig-project.org/trunk@168 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:45:06 +00:00
fabien
ee5c9d9363
added support for arrays ( closes #50 )
...
git-svn-id: http://svn.twig-project.org/trunk@162 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 10:54:01 +00:00
fabien
e8c05e9632
fixed typo in the tests
...
git-svn-id: http://svn.twig-project.org/trunk@145 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-28 11:03:10 +00:00
fabien
d3ee1165fe
refactored loaders ( closes #38 )
...
git-svn-id: http://svn.twig-project.org/trunk@142 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-16 15:01:52 +00:00
fabien
60158e16f1
made a optimization when a loop iterator also implements Countable
...
git-svn-id: http://svn.twig-project.org/trunk@120 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-08 08:22:36 +00:00
fabien
452dc15ae1
added public properties support
...
git-svn-id: http://svn.twig-project.org/trunk@113 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-05 17:31:02 +00:00
fabien
c7e8e88cc9
added support for expression for the set tag
...
git-svn-id: http://svn.twig-project.org/trunk@112 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-05 17:18:08 +00:00
fabien
c8f67b6061
made the set tag more powerful
...
git-svn-id: http://svn.twig-project.org/trunk@103 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-27 16:31:56 +00:00
fabien
e96948f2e3
added some tests
...
git-svn-id: http://svn.twig-project.org/trunk@77 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:53:33 +00:00
fabien
7a4f63da2c
added support for short block tag
...
git-svn-id: http://svn.twig-project.org/trunk@76 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:53:21 +00:00
fabien
abc9c5d5ca
added macro support
...
git-svn-id: http://svn.twig-project.org/trunk@65 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-16 07:51:42 +00:00
fabien
2cfb51a143
added a rewind() method to the token stream
...
git-svn-id: http://svn.twig-project.org/trunk@42 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 08:08:04 +00:00
fabien
9fa9485df2
fixed look() method, added tests
...
git-svn-id: http://svn.twig-project.org/trunk@41 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-14 07:41:24 +00:00
fabien
ad12473dcb
added a test for method chain calls
...
git-svn-id: http://svn.twig-project.org/trunk@36 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-12 17:10:22 +00:00
fabien
7fa1167b2d
added support for method calls with arguments
...
git-svn-id: http://svn.twig-project.org/trunk@35 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-12 17:05:12 +00:00
fabien
fd0646e4cf
initial commit
...
git-svn-id: http://svn.twig-project.org/trunk@4 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-07 21:21:11 +00:00