fabien
237c3ff89e
added another example for the range filter
...
git-svn-id: http://svn.twig-project.org/trunk@172 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 14:46:07 +00:00
fabien
87ba224cd4
added the range filter
...
git-svn-id: http://svn.twig-project.org/trunk@171 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 13:26:07 +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
5a49c956bf
added the in filter
...
git-svn-id: http://svn.twig-project.org/trunk@167 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:40:43 +00:00
fabien
7b3b893018
added some missing literals in the doc
...
git-svn-id: http://svn.twig-project.org/trunk@166 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:34:04 +00:00
fabien
35af695023
updated doc to add arrays in the 'Literals' section
...
git-svn-id: http://svn.twig-project.org/trunk@165 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:30:02 +00:00
fabien
7b003e86ec
updated doc to add arrays in the 'Literals' section
...
git-svn-id: http://svn.twig-project.org/trunk@164 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:29:34 +00:00
fabien
e4afc9fd7b
added __toString() to Node_If
...
git-svn-id: http://svn.twig-project.org/trunk@163 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 12:22:53 +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
2e22982551
fixed typo ( closes #48 )
...
git-svn-id: http://svn.twig-project.org/trunk@161 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 10:48:41 +00:00
fabien
6c877d0612
enhance error messages
...
git-svn-id: http://svn.twig-project.org/trunk@160 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 09:22:04 +00:00
fabien
e2f8adb86a
added __toString() to Node_Set
...
git-svn-id: http://svn.twig-project.org/trunk@159 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 08:47:28 +00:00
fabien
69de38fb5c
made unexpected token exception more verbose
...
git-svn-id: http://svn.twig-project.org/trunk@158 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-13 08:12:07 +00:00
fabien
0ec9bc8892
removed uneeded file (the set tag is in the core extension by default)
...
git-svn-id: http://svn.twig-project.org/trunk@157 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-05 08:49:06 +00:00
fabien
ce4670dab6
prepare the 0.9.4 release
...
git-svn-id: http://svn.twig-project.org/trunk@153 93ef8e89-cb99-4229-a87c-7fa0fa45744b
v0.9.4
2009-12-02 22:06:08 +00:00
fabien
d47077eeea
added missing item in CHANGELOG
...
git-svn-id: http://svn.twig-project.org/trunk@152 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-02 22:04:31 +00:00
fabien
07ca8a79be
added support for DateTime instances for the date filter ( closes #41 )
...
git-svn-id: http://svn.twig-project.org/trunk@151 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-02 21:42:10 +00:00
fabien
dba457a702
added support for DateTime instances for the date filter ( closes #41 )
...
git-svn-id: http://svn.twig-project.org/trunk@150 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-02 21:41:57 +00:00
fabien
c3af27976b
added a recipe about sharing objects between the templates and the main application
...
git-svn-id: http://svn.twig-project.org/trunk@149 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-02 06:22:15 +00:00
fabien
a59e183f73
fixed loop.last when the array only has one item ( closes #40 )
...
git-svn-id: http://svn.twig-project.org/trunk@148 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-12-01 15:15:03 +00:00
fabien
2ffcea6c3d
removed the LINE_DELIMITER const and made it possible to insert newlines in tag and variable blocks
...
git-svn-id: http://svn.twig-project.org/trunk@147 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-28 12:51:56 +00:00
fabien
cd9ca8374c
fixed a bug when a literal '\n' were present in a template text
...
git-svn-id: http://svn.twig-project.org/trunk@146 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-28 11:25:56 +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
36416cf2a6
fixed typo
...
git-svn-id: http://svn.twig-project.org/trunk@143 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-18 11:25:24 +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
96834d2272
fixed bug when the filename of a template contains */
...
git-svn-id: http://svn.twig-project.org/trunk@141 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-16 12:36:34 +00:00
fabien
78ffe478e1
updated CHANGELOG
...
git-svn-id: http://svn.twig-project.org/trunk@137 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-11 20:37:42 +00:00
fabien
9584f0b337
updated CHANGELOG
...
git-svn-id: http://svn.twig-project.org/trunk@135 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-11 17:40:21 +00:00
fabien
df585dea82
moved template cache configuration to the main Twig_Environment class.
...
WARNING: This is an API change which is NOT backward compatible.
The loaders do not take the cache and autoReload options anymore.
Instead, the Twig_Environment class has two new options: cache and auto_reload.
Read the updated documentation for more information.
git-svn-id: http://svn.twig-project.org/trunk@134 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-11 17:32:47 +00:00
fabien
71ed2a0470
changed template loading of parent templates to use the memory cache provided by the environment
...
git-svn-id: http://svn.twig-project.org/trunk@133 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-11 17:26:02 +00:00
fabien
475eae5fce
moved getTemplateClass() to Twig_Environment
...
git-svn-id: http://svn.twig-project.org/trunk@132 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-11 16:57:23 +00:00
fabien
b721f043cd
renamed getTemplateName to getTemplateClass
...
git-svn-id: http://svn.twig-project.org/trunk@131 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-11 16:55:35 +00:00
fabien
03e02718d6
simplified cache management
...
git-svn-id: http://svn.twig-project.org/trunk@130 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-11 16:51:39 +00:00
fabien
84113a960c
optimized template loading as the source code is now never fetched if the cache exists and autoreload is false (which should be the case for websites in production)
...
git-svn-id: http://svn.twig-project.org/trunk@129 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-11 16:46:52 +00:00
fabien
7d913df23f
added setEnvironment to the Twig_LoaderInterface
...
git-svn-id: http://svn.twig-project.org/trunk@128 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-11 16:33:33 +00:00
fabien
688e4bb653
made Twig_Loader::getTemplateName() the only method that knows how to create a template class name
...
git-svn-id: http://svn.twig-project.org/trunk@127 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-11 16:31:21 +00:00
fabien
74dbd388dc
fixed output when an error occurs in a template and render() is used ( closes #23 )
...
git-svn-id: http://svn.twig-project.org/trunk@126 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-10 21:39:18 +00:00
fabien
5d28604a05
updated CHANGELOG
...
git-svn-id: http://svn.twig-project.org/trunk@121 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-08 08:22:44 +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
f01728426f
made more changes to use iterator_to_array()
...
git-svn-id: http://svn.twig-project.org/trunk@119 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-08 08:05:13 +00:00
fabien
588fb93097
made a huge optimization for loops (again)
...
git-svn-id: http://svn.twig-project.org/trunk@118 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-07 22:18:56 +00:00
fabien
9cfb40b0fa
made a huge optimization for loops (up to 50% faster now)
...
git-svn-id: http://svn.twig-project.org/trunk@117 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-07 19:48:10 +00:00
fabien
1bb24438b5
made small optimizations to for loops
...
git-svn-id: http://svn.twig-project.org/trunk@116 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-07 19:11:44 +00:00
fabien
1c9566f007
made a small optimization when iterating over an Iterator
...
git-svn-id: http://svn.twig-project.org/trunk@115 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-07 18:54:37 +00:00
fabien
c5072c8a9e
added a tip about dynamic properties
...
git-svn-id: http://svn.twig-project.org/trunk@114 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-05 17:42:55 +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
9cfbe3d3dd
fixed \ usage in a HTML string
...
git-svn-id: http://svn.twig-project.org/trunk@111 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-11-05 17:06:00 +00:00