Fabien Potencier
843e1f74ee
added an example for the loop variable ( closes #732 )
2012-05-23 07:40:44 +02:00
Fabien Potencier
0fa26d6429
fixed compiler when mbstring.func_overload is set to 2 ( closes #731 )
2012-05-21 13:39:18 +02:00
Fabien Potencier
e28663efd8
fixed CS
2012-05-19 09:41:36 +02:00
Fabien Potencier
875fa010ce
bumped version to 1.8.2-DEV
2012-05-17 18:06:57 +02:00
Fabien Potencier
0bee037579
prepared the 1.8.1 release
v1.8.1
2012-05-17 18:02:47 +02:00
Fabien Potencier
06da8234ef
merged branch Tobion/patch-5 (PR #729 )
...
Commits
-------
b692268 removed leftover of 93c4406f8 and made some language improvements
Discussion
----------
removed leftover of 93c4406f8 and made some language improvements
2012-05-17 09:08:48 +02:00
Tobias Schultze
b6922682b0
removed leftover of 93c4406f8 and made some language improvements
2012-05-17 00:21:17 +03:00
Fabien Potencier
7f06c12c53
fixed tests for PHP 5.2
2012-05-16 17:00:05 +02:00
Fabien Potencier
93c4406f87
fixed typos in the doc ( closes #726 )
2012-05-16 16:24:38 +02:00
Fabien Potencier
621c7b5757
updated CHANGELOG
2012-05-16 16:22:01 +02:00
Fabien Potencier
3fa5be49ab
fixed CHANGELOG
2012-05-16 16:20:34 +02:00
Fabien Potencier
8ec73cf475
fixed a regression introduced by aa6b835816
2012-05-16 16:19:00 +02:00
Fabien Potencier
c35e16dbd3
removed obsolete code
2012-05-16 16:01:19 +02:00
Fabien Potencier
d661c2a2f6
switched to use mbstring whenever possible instead of iconv (because of issues with iconv and Japanese -- thanks @ganchiku for the tip)
2012-05-12 10:15:51 +02:00
Fabien Potencier
f8e9a45388
merged branch Fustrate/master (PR #725 )
...
Commits
-------
6c06a32 Coding style
Discussion
----------
Minor typos and coding style
- Unnecessary return in Lexer
- Typo in TokenParserBrokerInterface
2012-05-11 06:53:17 +02:00
Steven Hoffman
6c06a32663
Coding style
...
- Unnecessary return in Lexer
- Typo in TokenParserBrokerInterface
2012-05-10 12:10:26 -07:00
Fabien Potencier
e445192f06
merged branch literal/v1.8.0 (PR #723 )
...
Commits
-------
d13f742 fix example in doc for embed tag
b11412e improve documentation for embed tag
Discussion
----------
improve documentation for embed tag
https://github.com/fabpot/Twig/issues/722
---------------------------------------------------------------------------
by fabpot at 2012-05-10T05:10:37Z
I think this is a great improvement over the original version! The notion of "micro-layouts" certainly helps understand the concept behind the `embed` tag.
Thanks.
2012-05-10 13:36:58 +02:00
literal
d13f7424eb
fix example in doc for embed tag
2012-05-10 14:33:17 +03:00
literal
b11412efd8
improve documentation for embed tag
2012-05-10 03:10:48 +03:00
Fabien Potencier
078905ed95
fixed dump function is_safe value when html_errors is not defined in php.ini ( closes #720 )
2012-05-08 14:24:57 +02:00
Fabien Potencier
925254821d
bumped version to 1.9.0-DEV
2012-05-08 09:06:03 +02:00
Fabien Potencier
87766410dd
prepared the 1.8.0 release
v1.8.0
2012-05-08 09:03:46 +02:00
Fabien Potencier
1dc3c4beaf
added documentation for the bitwise operators ( closes #707 )
2012-05-08 08:32:32 +02:00
Fabien Potencier
52cc3817a8
added tests for bitwise operators
2012-05-08 08:30:42 +02:00
Fabien Potencier
4cd98e62d0
clarified usage of the dump function ( closes #718 )
2012-05-08 08:23:16 +02:00
Fabien Potencier
db32d5ef43
enforced interface when adding tests, filters, functions, and node visitors from extensions
...
This avoids some hard to find bugs where you use a Twig_Function_Method
for instance for a filter. This is hard to find because the interface is
almost the same but the getSafe() contract is not the same.
2012-05-04 08:00:56 +02:00
Fabien Potencier
606d6dc15e
updated CHANGELOG
2012-05-03 22:31:44 +02:00
Fabien Potencier
3160189601
merged branch stof/mutable_datetime (PR #717 )
...
Commits
-------
a23d4fb Fixed the handling of the timezone for DateTime objects
a164469 Added a failing test demonstrating the bug with DateTime and timezones
Discussion
----------
Mutable datetime
PHP DateTime objects are mutable so changing the timezone when displaying
it affects the following code whereas it does not occur for other
supported formats.
2012-05-03 22:30:26 +02:00
Christophe Coevoet
a23d4fbb71
Fixed the handling of the timezone for DateTime objects
2012-05-03 22:25:04 +02:00
Christophe Coevoet
a16446913a
Added a failing test demonstrating the bug with DateTime and timezones
...
PHP DateTime objects are mutable so changing the timezone when displaying
it affects the following code whereas it does not occur for other
supported formats.
2012-05-03 22:20:20 +02:00
Fabien Potencier
f3491b5cbf
added a missing entry in the CHANGELOG
2012-04-28 09:16:43 +02:00
Fabien Potencier
5923f0cbad
fixed markup in the doc
2012-04-27 17:50:30 +02:00
Fabien Potencier
db8a109495
merged two doc files
2012-04-27 17:50:30 +02:00
Fabien Potencier
bbfc7d7aef
renamed a doc file
2012-04-27 17:50:27 +02:00
Fabien Potencier
50c511849f
refactored the hacking twig doc chapter
2012-04-27 17:35:26 +02:00
Fabien Potencier
2a2aeee8e0
tweaked doc
2012-04-27 14:21:26 +02:00
Fabien Potencier
3697ef4a3e
added a new recipe
2012-04-27 14:18:22 +02:00
Fabien Potencier
635bafd46e
fixed embed compilation when used more than once in a template ( closes #714 )
2012-04-27 09:16:28 +02:00
Fabien Potencier
75d97b4a27
made the autoescape tag argument optional (defaults to 'html')
2012-04-25 18:22:58 +02:00
Fabien Potencier
73136d3583
added a note about auto-escaping and the embed tag
...
We cannot use the parent template to guess the auto-escaping strategy
either as it can be any valid expression, for which we have the real
value only at runtime (auto-escaping happening at compilation time).
2012-04-25 10:34:24 +02:00
Fabien Potencier
feaaca216c
ensured that each template (Twig_Node_Module) is only visited once
2012-04-25 09:17:16 +02:00
Fabien Potencier
ac7907abab
simplified code
2012-04-25 08:37:17 +02:00
Fabien Potencier
67c71201e6
added a way to change the default escaping strategy after creating the Twig environment
2012-04-25 08:24:12 +02:00
Fabien Potencier
d458e8c892
tweaked doc for the escape filter
2012-04-25 07:35:12 +02:00
Fabien Potencier
9ecf090ae8
simplified usage of the autoescape tag; the only argument is now the escaping strategy or false
2012-04-25 07:30:52 +02:00
Fabien Potencier
423c827093
tweaked an error message
2012-04-25 07:12:38 +02:00
Fabien Potencier
1f00c33acd
added a way to dynamically change the auto-escaping strategy according to the template filename
2012-04-25 07:12:38 +02:00
Fabien Potencier
109db731ca
changed the autoescape option to also accept a supported escaping strategy (for BC, true is equivalent to html)
2012-04-25 07:12:34 +02:00
Fabien Potencier
b0c435979f
fixed CS
2012-04-25 06:17:05 +02:00
Fabien Potencier
02f1c567b9
fixed markup in the doc
2012-04-24 13:12:09 +02:00