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
fabien
822fb857ad
updated CHANGELOG for 0.9.3-DEV version
...
git-svn-id: http://svn.twig-project.org/trunk@108 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-29 20:00:52 +00:00
fabien
a9397b6495
updated CHANGELOG for 0.9.2
...
git-svn-id: http://svn.twig-project.org/trunk@105 93ef8e89-cb99-4229-a87c-7fa0fa45744b
v0.9.2
2009-10-29 19:55:02 +00:00
fabien
571c5d9c87
fixed typo
...
git-svn-id: http://svn.twig-project.org/trunk@104 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-27 16:33:19 +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
1708d34284
added a note about the compilation cache
...
git-svn-id: http://svn.twig-project.org/trunk@102 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-27 13:10:36 +00:00
fabien
34bfda364c
added some more information about creating a filter with some arguments
...
git-svn-id: http://svn.twig-project.org/trunk@101 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-27 13:05:14 +00:00
fabien
3494bc233a
added a debug tag
...
git-svn-id: http://svn.twig-project.org/trunk@90 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-22 01:56:15 +00:00
fabien
e04739bbc3
made Node constructors coherent
...
git-svn-id: http://svn.twig-project.org/trunk@89 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-22 01:47:20 +00:00
fabien
43a1668343
allows macros to have the same kind of logic than the one in regular templates
...
git-svn-id: http://svn.twig-project.org/trunk@88 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-22 01:30:27 +00:00
fabien
79c4094679
fixed iterators with non-array values
...
git-svn-id: http://svn.twig-project.org/trunk@87 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-22 01:29:43 +00:00
fabien
8c0e08eb85
fixed documentation about using a method call for filters
...
git-svn-id: http://svn.twig-project.org/trunk@86 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-22 00:54:10 +00:00
fabien
554031dc70
added an exception of a template path does not exist
...
git-svn-id: http://svn.twig-project.org/trunk@85 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-22 00:44:44 +00:00
fabien
b12d2f3df3
made a speed optimization for template inclusion and when including the same template over and over again
...
git-svn-id: http://svn.twig-project.org/trunk@84 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-20 12:00:02 +00:00
fabien
fc798571f9
changed the cache extension to .php ( closes #15 )
...
git-svn-id: http://svn.twig-project.org/trunk@83 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-20 04:46:30 +00:00
fabien
2bb3c75450
fixed unreachable code in filesystem loader skips security exception ( closes #17 )
...
git-svn-id: http://svn.twig-project.org/trunk@82 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-20 04:45:04 +00:00
fabien
4a5173151d
added a js escaping strategy
...
git-svn-id: http://svn.twig-project.org/trunk@81 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-20 04:25:01 +00:00
fabien
e850d97980
updated documentation for new features
...
git-svn-id: http://svn.twig-project.org/trunk@78 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:53:49 +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
22a5723159
changed the filter tag to allow chained filters
...
git-svn-id: http://svn.twig-project.org/trunk@75 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:52:37 +00:00
fabien
6cae4bac4a
made lexer more flexible as you can now change the default delimiters
...
git-svn-id: http://svn.twig-project.org/trunk@74 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:51:34 +00:00
fabien
2674ea2755
added set tag
...
git-svn-id: http://svn.twig-project.org/trunk@73 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-18 22:50:16 +00:00