fabien [Wed, 13 Jan 2010 14:43:33 +0000]
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
fabien [Fri, 8 Jan 2010 16:15:16 +0000]
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
fabien [Fri, 8 Jan 2010 16:14:59 +0000]
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
fabien [Fri, 8 Jan 2010 16:12:44 +0000]
added a missing accessor in Twig_Node_Set
git-svn-id: http://svn.twig-project.org/trunk@222
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Fri, 8 Jan 2010 15:26:17 +0000]
fixed Twig_Node_Include
git-svn-id: http://svn.twig-project.org/trunk@221
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Fri, 8 Jan 2010 15:20:34 +0000]
updated CHANGELOG
git-svn-id: http://svn.twig-project.org/trunk@220
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Fri, 8 Jan 2010 15:01:33 +0000]
fixed Twig_Node_Set
git-svn-id: http://svn.twig-project.org/trunk@219
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Fri, 8 Jan 2010 14:59:14 +0000]
added some methods to Twig_Node_Include to allow better introspection
git-svn-id: http://svn.twig-project.org/trunk@218
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Fri, 8 Jan 2010 14:58:41 +0000]
fixed Twig_Node_Expression_Array
git-svn-id: http://svn.twig-project.org/trunk@217
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Fri, 8 Jan 2010 13:16:37 +0000]
added the "without loop" option to the for tag (it disables the generation of the loop variable)
git-svn-id: http://svn.twig-project.org/trunk@216
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Fri, 8 Jan 2010 13:14:39 +0000]
removed obsolete code in fixtures
git-svn-id: http://svn.twig-project.org/trunk@215
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Fri, 8 Jan 2010 12:48:59 +0000]
moved the nested loop doc into a recipe
git-svn-id: http://svn.twig-project.org/trunk@214
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 6 Jan 2010 15:20:16 +0000]
added an example of a nested loop to demonstrate the usage of loop.parent
git-svn-id: http://svn.twig-project.org/trunk@213
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 6 Jan 2010 15:05:14 +0000]
-
git-svn-id: http://svn.twig-project.org/trunk@212
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 6 Jan 2010 09:11:53 +0000]
rewrote the tag section of the documentation
git-svn-id: http://svn.twig-project.org/trunk@211
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 6 Jan 2010 09:00:16 +0000]
rewrote the filter sections of the documentation
git-svn-id: http://svn.twig-project.org/trunk@210
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 6 Jan 2010 08:21:18 +0000]
updated doc
git-svn-id: http://svn.twig-project.org/trunk@209
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 6 Jan 2010 08:19:36 +0000]
added the // operator (like in Jinja2, closes #44)
git-svn-id: http://svn.twig-project.org/trunk@208
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Mon, 28 Dec 2009 20:55:27 +0000]
added a not about using several directories for the filesystem loader
git-svn-id: http://svn.twig-project.org/trunk@207
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 16:38:09 +0000]
made some cleanup
git-svn-id: http://svn.twig-project.org/trunk@206
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 15:02:02 +0000]
added a not about autoescape and include tags
git-svn-id: http://svn.twig-project.org/trunk@205
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 14:48:42 +0000]
tweaked a bit the documentation
git-svn-id: http://svn.twig-project.org/trunk@204
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 14:13:46 +0000]
added missing test
git-svn-id: http://svn.twig-project.org/trunk@203
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 14:13:28 +0000]
refactored node transformers to node visitors
git-svn-id: http://svn.twig-project.org/trunk@202
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 14:13:11 +0000]
refactored node transformers to node visitors
git-svn-id: http://svn.twig-project.org/trunk@201
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 13:30:41 +0000]
added __toString() to AutoEscape node class
git-svn-id: http://svn.twig-project.org/trunk@200
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 13:13:47 +0000]
added missing getter on GetAttr node class
git-svn-id: http://svn.twig-project.org/trunk@199
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 13:13:09 +0000]
added missing getter on Module node class
git-svn-id: http://svn.twig-project.org/trunk@198
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 13:12:48 +0000]
added missing getter on Block node class
git-svn-id: http://svn.twig-project.org/trunk@197
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 07:35:57 +0000]
added support for a trailing , when defining arrays
git-svn-id: http://svn.twig-project.org/trunk@196
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 07:18:45 +0000]
removed unneeded call to ucfirst
git-svn-id: http://svn.twig-project.org/trunk@195
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 07:06:39 +0000]
fixed escaping when getattr nodes are used
git-svn-id: http://svn.twig-project.org/trunk@194
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 22 Dec 2009 06:47:45 +0000]
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
fabien [Tue, 22 Dec 2009 06:44:59 +0000]
fixed error reporting in integration tests
git-svn-id: http://svn.twig-project.org/trunk@192
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 15 Dec 2009 14:37:47 +0000]
added some tests
git-svn-id: http://svn.twig-project.org/trunk@191
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 15 Dec 2009 08:01:13 +0000]
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
fabien [Tue, 15 Dec 2009 07:35:23 +0000]
fixed indentation in the docs
git-svn-id: http://svn.twig-project.org/trunk@189
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 15 Dec 2009 07:34:06 +0000]
added some warnings when a section describes Twig 0.9.5
git-svn-id: http://svn.twig-project.org/trunk@188
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 15 Dec 2009 07:21:46 +0000]
made the escaper filter configurable in the Escaper node transformer
git-svn-id: http://svn.twig-project.org/trunk@187
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 15 Dec 2009 07:15:46 +0000]
made auto-escaping more configurable with the new is_escaper option
git-svn-id: http://svn.twig-project.org/trunk@186
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Tue, 15 Dec 2009 06:53:28 +0000]
fixed typo in a test fixture
git-svn-id: http://svn.twig-project.org/trunk@185
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Mon, 14 Dec 2009 19:29:23 +0000]
added the floor filter
git-svn-id: http://svn.twig-project.org/trunk@184
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Mon, 14 Dec 2009 19:23:55 +0000]
added operator precedence in the doc
git-svn-id: http://svn.twig-project.org/trunk@183
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Mon, 14 Dec 2009 16:57:54 +0000]
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
fabien [Mon, 14 Dec 2009 15:31:17 +0000]
fixed doc
git-svn-id: http://svn.twig-project.org/trunk@181
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Mon, 14 Dec 2009 15:29:19 +0000]
improved the filter system to allow object methods to be used as filters
git-svn-id: http://svn.twig-project.org/trunk@180
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Mon, 14 Dec 2009 11:04:44 +0000]
rearranged the doc
git-svn-id: http://svn.twig-project.org/trunk@179
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Mon, 14 Dec 2009 07:05:06 +0000]
changed the Array and String loaders to actually make use of the cache mechanism
git-svn-id: http://svn.twig-project.org/trunk@178
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Mon, 14 Dec 2009 06:56:48 +0000]
added a recipe in the doc about overriding the default filters
git-svn-id: http://svn.twig-project.org/trunk@177
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Mon, 14 Dec 2009 06:46:16 +0000]
included the default filter function definitions in the extension class files directly (Core, Escaper)
git-svn-id: http://svn.twig-project.org/trunk@176
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 15:25:48 +0000]
updated doc
git-svn-id: http://svn.twig-project.org/trunk@175
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 15:20:39 +0000]
added some notices of features only available in 0.9.5
git-svn-id: http://svn.twig-project.org/trunk@174
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 15:13:38 +0000]
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
fabien [Sun, 13 Dec 2009 14:46:07 +0000]
added another example for the range filter
git-svn-id: http://svn.twig-project.org/trunk@172
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 13:26:07 +0000]
added the range filter
git-svn-id: http://svn.twig-project.org/trunk@171
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 13:03:07 +0000]
added the in operator
git-svn-id: http://svn.twig-project.org/trunk@170
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 12:55:04 +0000]
added tests for the in filter
git-svn-id: http://svn.twig-project.org/trunk@169
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 12:45:06 +0000]
added test for DateTime support in the date filter
git-svn-id: http://svn.twig-project.org/trunk@168
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 12:40:43 +0000]
added the in filter
git-svn-id: http://svn.twig-project.org/trunk@167
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 12:34:04 +0000]
added some missing literals in the doc
git-svn-id: http://svn.twig-project.org/trunk@166
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 12:30:02 +0000]
updated doc to add arrays in the 'Literals' section
git-svn-id: http://svn.twig-project.org/trunk@165
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 12:29:34 +0000]
updated doc to add arrays in the 'Literals' section
git-svn-id: http://svn.twig-project.org/trunk@164
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 12:22:53 +0000]
added __toString() to Node_If
git-svn-id: http://svn.twig-project.org/trunk@163
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 10:54:01 +0000]
added support for arrays (closes #50)
git-svn-id: http://svn.twig-project.org/trunk@162
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 10:48:41 +0000]
fixed typo (closes #48)
git-svn-id: http://svn.twig-project.org/trunk@161
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 09:22:04 +0000]
enhance error messages
git-svn-id: http://svn.twig-project.org/trunk@160
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 08:47:28 +0000]
added __toString() to Node_Set
git-svn-id: http://svn.twig-project.org/trunk@159
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 13 Dec 2009 08:12:07 +0000]
made unexpected token exception more verbose
git-svn-id: http://svn.twig-project.org/trunk@158
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sat, 5 Dec 2009 08:49:06 +0000]
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
fabien [Wed, 2 Dec 2009 22:06:08 +0000]
prepare the 0.9.4 release
git-svn-id: http://svn.twig-project.org/trunk@153
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 2 Dec 2009 22:04:31 +0000]
added missing item in CHANGELOG
git-svn-id: http://svn.twig-project.org/trunk@152
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 2 Dec 2009 21:42:10 +0000]
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
fabien [Wed, 2 Dec 2009 21:41:57 +0000]
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
fabien [Wed, 2 Dec 2009 06:22:15 +0000]
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
fabien [Tue, 1 Dec 2009 15:15:03 +0000]
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
fabien [Sat, 28 Nov 2009 12:51:56 +0000]
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
fabien [Sat, 28 Nov 2009 11:25:56 +0000]
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
fabien [Sat, 28 Nov 2009 11:03:10 +0000]
fixed typo in the tests
git-svn-id: http://svn.twig-project.org/trunk@145
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 18 Nov 2009 11:25:24 +0000]
fixed typo
git-svn-id: http://svn.twig-project.org/trunk@143
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Mon, 16 Nov 2009 15:01:52 +0000]
refactored loaders (closes #38)
git-svn-id: http://svn.twig-project.org/trunk@142
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Mon, 16 Nov 2009 12:36:34 +0000]
fixed bug when the filename of a template contains */
git-svn-id: http://svn.twig-project.org/trunk@141
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 11 Nov 2009 20:37:42 +0000]
updated CHANGELOG
git-svn-id: http://svn.twig-project.org/trunk@137
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 11 Nov 2009 17:40:21 +0000]
updated CHANGELOG
git-svn-id: http://svn.twig-project.org/trunk@135
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 11 Nov 2009 17:32:47 +0000]
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
fabien [Wed, 11 Nov 2009 17:26:02 +0000]
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
fabien [Wed, 11 Nov 2009 16:57:23 +0000]
moved getTemplateClass() to Twig_Environment
git-svn-id: http://svn.twig-project.org/trunk@132
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 11 Nov 2009 16:55:35 +0000]
renamed getTemplateName to getTemplateClass
git-svn-id: http://svn.twig-project.org/trunk@131
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 11 Nov 2009 16:51:39 +0000]
simplified cache management
git-svn-id: http://svn.twig-project.org/trunk@130
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 11 Nov 2009 16:46:52 +0000]
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
fabien [Wed, 11 Nov 2009 16:33:33 +0000]
added setEnvironment to the Twig_LoaderInterface
git-svn-id: http://svn.twig-project.org/trunk@128
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Wed, 11 Nov 2009 16:31:21 +0000]
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
fabien [Tue, 10 Nov 2009 21:39:18 +0000]
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
fabien [Sun, 8 Nov 2009 08:22:44 +0000]
updated CHANGELOG
git-svn-id: http://svn.twig-project.org/trunk@121
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sun, 8 Nov 2009 08:22:36 +0000]
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
fabien [Sun, 8 Nov 2009 08:05:13 +0000]
made more changes to use iterator_to_array()
git-svn-id: http://svn.twig-project.org/trunk@119
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sat, 7 Nov 2009 22:18:56 +0000]
made a huge optimization for loops (again)
git-svn-id: http://svn.twig-project.org/trunk@118
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sat, 7 Nov 2009 19:48:10 +0000]
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
fabien [Sat, 7 Nov 2009 19:11:44 +0000]
made small optimizations to for loops
git-svn-id: http://svn.twig-project.org/trunk@116
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Sat, 7 Nov 2009 18:54:37 +0000]
made a small optimization when iterating over an Iterator
git-svn-id: http://svn.twig-project.org/trunk@115
93ef8e89-cb99-4229-a87c-
7fa0fa45744b
fabien [Thu, 5 Nov 2009 17:42:55 +0000]
added a tip about dynamic properties
git-svn-id: http://svn.twig-project.org/trunk@114
93ef8e89-cb99-4229-a87c-
7fa0fa45744b