web/konrad/twig.git
12 years agofix Twig_Function_Node extending wrong class
Tobias Schultze [Sun, 15 Jul 2012 21:06:53 +0000]
fix Twig_Function_Node extending wrong class

12 years agorefactored the loader documentation
Fabien Potencier [Sat, 14 Jul 2012 14:10:03 +0000]
refactored the loader documentation

12 years agobumped version to 1.9.1-DEV
Fabien Potencier [Fri, 13 Jul 2012 16:31:16 +0000]
bumped version to 1.9.1-DEV

12 years agoprepared the 1.9.0 release
Fabien Potencier [Fri, 13 Jul 2012 16:26:34 +0000]
prepared the 1.9.0 release

12 years agofixed the template escaper guesser example
Fabien Potencier [Fri, 13 Jul 2012 06:40:06 +0000]
fixed the template escaper guesser example

12 years agoclarified usage of the string and array loaders
Fabien Potencier [Fri, 13 Jul 2012 06:31:08 +0000]
clarified usage of the string and array loaders

12 years agomerged branch Adel-E/patch-1 (PR #767)
Fabien Potencier [Thu, 12 Jul 2012 19:30:05 +0000]
merged branch Adel-E/patch-1 (PR #767)

Commits
-------

0cb37ba Fix typehint "int" to "integer"

Discussion
----------

Fix typehint "int" to "integer"

---------------------------------------------------------------------------

by nikic at 2012-07-09T21:13:48Z

Why would you want to do that?

---------------------------------------------------------------------------

by Adel-E at 2012-07-09T21:21:34Z

Because in this file all @param use integer instead of int

12 years agoscaled back on named HTML entities since HTML 5's XML serialisation is actually XML...
Fabien Potencier [Thu, 12 Jul 2012 14:51:31 +0000]
scaled back on named HTML entities since HTML 5's XML serialisation is actually XML (not XHTML)

see https://github.com/zendframework/zf2/commit/d5862587ae7c2ff2da873f1bf30003103134a365

12 years agomade the parsing independent of the template loaders
Fabien Potencier [Tue, 10 Jul 2012 16:30:12 +0000]
made the parsing independent of the template loaders

This basically reverts 57ff88255ef35ad8da325d0cb0bf140e653b132c

12 years agofixed PHP 5.2 issue in unit tests
Fabien Potencier [Tue, 10 Jul 2012 12:56:21 +0000]
fixed PHP 5.2 issue in unit tests

12 years agofixed exception trace when an error occurs when rendering a child template
Fabien Potencier [Tue, 10 Jul 2012 12:40:33 +0000]
fixed exception trace when an error occurs when rendering a child template

12 years agoFix typehint "int" to "integer"
Adel [Mon, 9 Jul 2012 20:28:19 +0000]
Fix typehint "int" to "integer"

12 years agofixed composer version
Fabien Potencier [Wed, 4 Jul 2012 17:33:25 +0000]
fixed composer version

12 years agomerged branch shieldo/patch-2 (PR #763)
Fabien Potencier [Sat, 30 Jun 2012 08:06:47 +0000]
merged branch shieldo/patch-2 (PR #763)

Commits
-------

4e4d41b improved English in example text

Discussion
----------

improved English in example text

12 years agoimproved English in example text
Douglas Greenshields [Fri, 29 Jun 2012 18:16:04 +0000]
improved English in example text

12 years agomerged branch stealth35/sanitize_ext (PR #761)
Fabien Potencier [Thu, 28 Jun 2012 13:39:18 +0000]
merged branch stealth35/sanitize_ext (PR #761)

Commits
-------

9229ef3 Removed useless code

Discussion
----------

[Ext] Removed useless code

All init hooks could be bypassed (just return `SUCESS`)
There is no `ini` entries and no globals
Phpinfo automatically get the version when `MINFO` is null
Twig don't work with PHP 4 (ref to `20010901`)

12 years agoRemoved useless code
stealth35 [Wed, 27 Jun 2012 15:57:06 +0000]
Removed useless code

12 years agofixed PHP 5.2 incompatibilty
Fabien Potencier [Wed, 27 Jun 2012 09:49:34 +0000]
fixed PHP 5.2 incompatibilty

12 years agofixed url escaping strategy for PHP 5.2
Fabien Potencier [Wed, 27 Jun 2012 09:18:21 +0000]
fixed url escaping strategy for PHP 5.2

12 years agomerged branch Seldaek/date_modify (PR #760)
Fabien Potencier [Wed, 27 Jun 2012 09:12:10 +0000]
merged branch Seldaek/date_modify (PR #760)

Commits
-------

2c9e26e Fix date_modify filter for PHP 5.2

Discussion
----------

Fix date_modify filter for PHP 5.2

The return of the object was added in 5.3, this hopefully fixes it.

12 years agoFix date_modify filter for PHP 5.2
Jordi Boggiano [Wed, 27 Jun 2012 08:25:59 +0000]
Fix date_modify filter for PHP 5.2

12 years agoadded support for more escaping strategies (url, css, and html_attr)
Fabien Potencier [Wed, 27 Jun 2012 07:07:27 +0000]
added support for more escaping strategies (url, css, and html_attr)

12 years agotweaked previous commit
Fabien Potencier [Tue, 26 Jun 2012 16:24:26 +0000]
tweaked previous commit

12 years agomerged branch Seldaek/date_modify (PR #757)
Fabien Potencier [Tue, 26 Jun 2012 16:23:42 +0000]
merged branch Seldaek/date_modify (PR #757)

Commits
-------

ae85586 Add docs for date_modify
0366cf6 Fix docs of date filter

Discussion
----------

Date modify filter

This is probably possible via `date(foo)|modify('-1day')|format()`, but it's non obvious and a dedicated filter might be a bit more prominent.

---------------------------------------------------------------------------

by fabpot at 2012-06-22T07:01:32Z

Just a quick thought: As it modifies the date, it should probably be a function, not a filter.

---------------------------------------------------------------------------

by stof at 2012-06-22T07:24:52Z

@fabpot Aren't filters meant to transform the value ?

12 years agofixed nested embed tag calls
Fabien Potencier [Tue, 26 Jun 2012 15:59:41 +0000]
fixed nested embed tag calls

12 years agomerged branch meandmymonkey/clarify-pre_escape (PR #758)
Fabien Potencier [Tue, 26 Jun 2012 15:12:23 +0000]
merged branch meandmymonkey/clarify-pre_escape (PR #758)

Commits
-------

f840670 clarified documentation of pre_escape option

Discussion
----------

Clarified documentation of pre_escape option

The previous wording could be misunderstood as "tell the filter that the input has already been escaped", which is actually the opposite from how it works.

12 years agoclarified documentation of pre_escape option
Andreas Hucks [Mon, 25 Jun 2012 17:09:27 +0000]
clarified documentation of pre_escape option

12 years agoAdd docs for date_modify
Jordi Boggiano [Wed, 20 Jun 2012 17:45:35 +0000]
Add docs for date_modify

12 years agoFix docs of date filter
Jordi Boggiano [Wed, 20 Jun 2012 17:45:27 +0000]
Fix docs of date filter

12 years agobumped version to 1.8.4-DEV
Fabien Potencier [Sun, 17 Jun 2012 18:52:23 +0000]
bumped version to 1.8.4-DEV

12 years agoprepared the 1.8.3 release
Fabien Potencier [Sun, 17 Jun 2012 18:48:16 +0000]
prepared the 1.8.3 release

12 years agofixed paths in the filesystem loader when passing a path that ends with a slash or...
Fabien Potencier [Thu, 14 Jun 2012 15:05:56 +0000]
fixed paths in the filesystem loader when passing a path that ends with a slash or a backslash (closes #750)

12 years agofixed typos
Fabien Potencier [Thu, 14 Jun 2012 15:02:35 +0000]
fixed typos

12 years agofixed escaping when a project defines a function named html or js (closes #724)
Fabien Potencier [Thu, 14 Jun 2012 15:00:28 +0000]
fixed escaping when a project defines a function named html or js (closes #724)

12 years agoadded some information about template recompilation (closes #743)
Fabien Potencier [Thu, 14 Jun 2012 13:20:28 +0000]
added some information about template recompilation (closes #743)

12 years agotweaked doc
Fabien Potencier [Thu, 14 Jun 2012 13:15:52 +0000]
tweaked doc

12 years agofixed doc (closes #744)
Fabien Potencier [Thu, 14 Jun 2012 13:07:01 +0000]
fixed doc (closes #744)

12 years agoadded missing comment added (closes #476)
Libert KHE [Wed, 6 Jun 2012 19:23:49 +0000]
added missing comment added (closes #476)

12 years agomerged branch adrienbrault/patch-1 (PR #751)
Fabien Potencier [Wed, 13 Jun 2012 06:24:34 +0000]
merged branch adrienbrault/patch-1 (PR #751)

Commits
-------

80a2a7e [Doc] Fix some typos

Discussion
----------

[Doc] Fix some typos

Hi!

12 years ago[Doc] Fix some typos
Adrien Brault [Tue, 12 Jun 2012 22:27:42 +0000]
[Doc] Fix some typos

12 years agofixed chmod mode to apply the umask correctly (closes #749)
Fabien Potencier [Sun, 10 Jun 2012 13:13:55 +0000]
fixed chmod mode to apply the umask correctly (closes #749)

12 years agofixed a phpdoc (closes #748)
Fabien Potencier [Sat, 9 Jun 2012 06:45:24 +0000]
fixed a phpdoc (closes #748)

12 years agoadded a note in the CHANGELOG (refs #745)
Fabien Potencier [Fri, 8 Jun 2012 14:55:41 +0000]
added  a note in the CHANGELOG (refs #745)

12 years agomerged branch catchamonkey/compiler_outdent (PR #747)
Fabien Potencier [Fri, 8 Jun 2012 14:53:09 +0000]
merged branch catchamonkey/compiler_outdent (PR #747)

Commits
-------

459a076 The Compiler outdent method will now only reduce the indentation if it's OK  to do so, It moves and modifies the check up above the indentation modification.

Discussion
----------

Compiler outdent step validation moved up and modified

The Compiler outdent method will now only reduce the indentation if it's OK
to do so, It moves and modifies the check up above the indentation modification.
It's a small improvement but saves a wasted decrement of a variable, when you know an exception will be thrown immediately following it.

---------------------------------------------------------------------------

by nikic at 2012-06-07T23:18:00Z

Compared to throwing an exception decrementing a variable has practically no cost ;)

PS: Not saying that the change is bad or something like that, only saying that performance is the wrong reason to do it :)

---------------------------------------------------------------------------

by catchamonkey at 2012-06-07T23:20:23Z

Yeah, there is no performance gain, but the code only executes that which is necessary.
It's like there being no point preparing a response before you know if you are going to send it. (slightly OTT example, but you get what I mean) :)

12 years agoThe Compiler outdent method will now only reduce the indentation if it's OK
Chris Sedlmayr [Thu, 7 Jun 2012 22:45:55 +0000]
The Compiler outdent method will now only reduce the indentation if it's OK
 to do so, It moves and modifies the check up above the indentation modification.

12 years agoadded Komodo to the list of supported IDEs
Fabien Potencier [Thu, 31 May 2012 05:17:23 +0000]
added Komodo to the list of supported IDEs

12 years agoadded Coda 2 in the list of supported IDEs
Fabien Potencier [Wed, 30 May 2012 20:55:03 +0000]
added Coda 2 in the list of supported IDEs

12 years agobumped version to 1.8.3
Fabien Potencier [Wed, 30 May 2012 06:18:29 +0000]
bumped version to 1.8.3

12 years agoprepared the 1.8.2 release
Fabien Potencier [Wed, 30 May 2012 06:15:36 +0000]
prepared the 1.8.2 release

12 years agofixed some CS issues
Fabien Potencier [Tue, 29 May 2012 18:38:42 +0000]
fixed some CS issues

12 years agomerged branch blaugueux/master (PR #736)
Fabien Potencier [Tue, 29 May 2012 18:09:42 +0000]
merged branch blaugueux/master (PR #736)

Commits
-------

c53a02d Fixed DateTimeZone support in date filter.

Discussion
----------

Fixed DateTimeZone support in date filter.

Now $date converted to a DateTime has a DateTimeZone in every case.

---------------------------------------------------------------------------

by fabpot at 2012-05-28T19:20:47Z

Can you add some unit tests to avoid regression to happen later? Thanks.

---------------------------------------------------------------------------

by blaugueux at 2012-05-29T07:52:58Z

@fabpot Here they are.

---------------------------------------------------------------------------

by fabpot at 2012-05-29T10:29:28Z

Great! Can you add a note in the CHANGELOG file and then squash your commit before I merge? Thanks.

---------------------------------------------------------------------------

by blaugueux at 2012-05-29T12:52:22Z

Changelog added. First squash of my life, i cannot say if it's good :(

---------------------------------------------------------------------------

by stof at 2012-05-29T12:55:26Z

it is not. you merged your remote branch instead of forcing the push

---------------------------------------------------------------------------

by blaugueux at 2012-05-29T17:12:05Z

Ok @stof, thanks for your help. I think it's good now.

@fabpot Is it ok for you ?

12 years agoFixed DateTimeZone support in date filter.
Benjamin Laugueux [Fri, 25 May 2012 19:29:08 +0000]
Fixed DateTimeZone support in date filter.

Prevents the DateTime object to be updated when changing the DateTimeZone.

Unit tests added.

Updated changelog.

12 years agoupdated CHANGELOG
Fabien Potencier [Mon, 28 May 2012 20:55:00 +0000]
updated CHANGELOG

12 years agomerged branch maartendekeizer/master (PR #738)
Fabien Potencier [Mon, 28 May 2012 20:54:16 +0000]
merged branch maartendekeizer/master (PR #738)

Commits
-------

f0a0036 Add abs filter including unit test and documentation

Discussion
----------

Add abs filter to Twig

With abs it is possible to make negative values positive and leave positive values positive.

---------------------------------------------------------------------------

by maartendekeizer at 2012-05-26T19:02:34Z

Example when using abs

{% if days_left < 0 %}
    {{ days_left|abs }} days to late!
{% else %}
    {{ days_left }} days left
{% endif %}

---------------------------------------------------------------------------

by stof at 2012-05-26T19:12:43Z

I'm not sure about adding this filter in the core. I think it would be better in the Twig-extensions repo. @fabpot thoughts ?

---------------------------------------------------------------------------

by maartendekeizer at 2012-05-26T21:18:47Z

@stof abs is a really basic/natural function it belongs to the base mathematic functions. If this was an implementation of for example the ABC-formula or Pythagoras it must be in the extension repo., but abs is more core related I think.

---------------------------------------------------------------------------

by fabpot at 2012-05-27T07:11:33Z

Can you add some unit tests and squash your commits? Thanks.

---------------------------------------------------------------------------

by maartendekeizer at 2012-05-27T14:40:56Z

First time squashing commits; learned something new :-). I will add a unit test tomorrow.

---------------------------------------------------------------------------

by maartendekeizer at 2012-05-27T17:36:58Z

Unit test and documentation added.

---------------------------------------------------------------------------

by fabpot at 2012-05-27T18:41:25Z

After fixing the markup issue, you will have to squash again ;)

---------------------------------------------------------------------------

by maartendekeizer at 2012-05-27T20:44:29Z

Done

---------------------------------------------------------------------------

by fabpot at 2012-05-28T19:19:55Z

Looks like you have not squash your commits.

---------------------------------------------------------------------------

by maartendekeizer at 2012-05-28T20:05:34Z

@fabot you want one commit for the complete pr?

---------------------------------------------------------------------------

by fabpot at 2012-05-28T20:06:53Z

For such a PR, yes.

12 years agoAdd abs filter
Maarten de Keizer [Sat, 26 May 2012 18:45:50 +0000]
Add abs filter
including unit test and documentation

12 years agomerged branch hhamon/doc_fixes (PR #737)
Fabien Potencier [Mon, 28 May 2012 06:44:30 +0000]
merged branch hhamon/doc_fixes (PR #737)

Commits
-------

953a0ce [doc] fixed Composer section of the introduction. Added a side note to the Composer official documentation for getting more information.

Discussion
----------

[doc] fixed twig version in installation documentation.

---------------------------------------------------------------------------

by lyrixx at 2012-05-25T23:30:01Z

why not use something like "1.*" ?

---------------------------------------------------------------------------

by fabpot at 2012-05-26T05:55:16Z

This is just an example and we are not going to update it with each new release. So, we can either use `1.*` as suggested by @lyrixx or/and add a note referring to the Composer docs.

---------------------------------------------------------------------------

by hhamon at 2012-05-28T05:34:54Z

That's better indeed!

---------------------------------------------------------------------------

by hhamon at 2012-05-28T05:40:46Z

@fabpot you can merge this PR

---------------------------------------------------------------------------

by fabpot at 2012-05-28T06:07:05Z

Can you squash?

---------------------------------------------------------------------------

by hhamon at 2012-05-28T06:31:42Z

@fabpot squashed!

12 years ago[doc] fixed Composer section of the introduction. Added a side note to the Composer...
Hugo Hamon [Fri, 25 May 2012 20:16:33 +0000]
[doc] fixed Composer section of the introduction. Added a side note to the Composer official documentation for getting more information.

12 years agofixed an obsolete comment in phpdoc
Fabien Potencier [Sat, 26 May 2012 06:30:56 +0000]
fixed an obsolete comment in phpdoc

12 years agofixed a regression when using a number in template attributes (closes #733)
Fabien Potencier [Wed, 23 May 2012 05:50:33 +0000]
fixed a regression when using a number in template attributes (closes #733)

12 years agoadded an example for the loop variable (closes #732)
Fabien Potencier [Wed, 23 May 2012 05:40:44 +0000]
added an example for the loop variable (closes #732)

12 years agofixed compiler when mbstring.func_overload is set to 2 (closes #731)
Fabien Potencier [Mon, 21 May 2012 11:39:18 +0000]
fixed compiler when mbstring.func_overload is set to 2 (closes #731)

12 years agofixed CS
Fabien Potencier [Sat, 19 May 2012 07:41:36 +0000]
fixed CS

12 years agobumped version to 1.8.2-DEV
Fabien Potencier [Thu, 17 May 2012 16:06:57 +0000]
bumped version to 1.8.2-DEV

12 years agoprepared the 1.8.1 release
Fabien Potencier [Thu, 17 May 2012 16:02:47 +0000]
prepared the 1.8.1 release

12 years agomerged branch Tobion/patch-5 (PR #729)
Fabien Potencier [Thu, 17 May 2012 07:08:48 +0000]
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

12 years agoremoved leftover of 93c4406f8 and made some language improvements
Tobias Schultze [Wed, 16 May 2012 21:21:17 +0000]
removed leftover of 93c4406f8 and made some language improvements

12 years agofixed tests for PHP 5.2
Fabien Potencier [Wed, 16 May 2012 15:00:05 +0000]
fixed tests for PHP 5.2

12 years agofixed typos in the doc (closes #726)
Fabien Potencier [Wed, 16 May 2012 14:24:38 +0000]
fixed typos in the doc (closes #726)

12 years agoupdated CHANGELOG
Fabien Potencier [Wed, 16 May 2012 14:22:01 +0000]
updated CHANGELOG

12 years agofixed CHANGELOG
Fabien Potencier [Wed, 16 May 2012 14:20:34 +0000]
fixed CHANGELOG

12 years agofixed a regression introduced by aa6b8358161e4ef35299be06a5ff61bfcba46f6a
Fabien Potencier [Wed, 16 May 2012 14:18:48 +0000]
fixed a regression introduced by aa6b8358161e4ef35299be06a5ff61bfcba46f6a

12 years agoremoved obsolete code
Fabien Potencier [Wed, 16 May 2012 14:01:19 +0000]
removed obsolete code

12 years agoswitched to use mbstring whenever possible instead of iconv (because of issues with...
Fabien Potencier [Sat, 5 May 2012 06:28:23 +0000]
switched to use mbstring whenever possible instead of iconv (because of issues with iconv and Japanese -- thanks @ganchiku for the tip)

12 years agomerged branch Fustrate/master (PR #725)
Fabien Potencier [Fri, 11 May 2012 04:53:17 +0000]
merged branch Fustrate/master (PR #725)

Commits
-------

6c06a32 Coding style

Discussion
----------

Minor typos and coding style

- Unnecessary return in Lexer
- Typo in TokenParserBrokerInterface

12 years agoCoding style
Steven Hoffman [Thu, 10 May 2012 19:10:26 +0000]
Coding style

- Unnecessary return in Lexer
- Typo in TokenParserBrokerInterface

12 years agomerged branch literal/v1.8.0 (PR #723)
Fabien Potencier [Thu, 10 May 2012 11:36:58 +0000]
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.

12 years agofix example in doc for embed tag
literal [Thu, 10 May 2012 11:33:17 +0000]
fix example in doc for embed tag

12 years agoimprove documentation for embed tag
literal [Thu, 10 May 2012 00:10:48 +0000]
improve documentation for embed tag

12 years agofixed dump function is_safe value when html_errors is not defined in php.ini (closes...
Fabien Potencier [Tue, 8 May 2012 12:24:57 +0000]
fixed dump function is_safe value when html_errors is not defined in php.ini (closes #720)

12 years agobumped version to 1.9.0-DEV
Fabien Potencier [Tue, 8 May 2012 07:06:03 +0000]
bumped version to 1.9.0-DEV

12 years agoprepared the 1.8.0 release
Fabien Potencier [Tue, 8 May 2012 07:03:46 +0000]
prepared the 1.8.0 release

12 years agoadded documentation for the bitwise operators (closes #707)
Fabien Potencier [Tue, 8 May 2012 06:32:32 +0000]
added documentation for the bitwise operators (closes #707)

12 years agoadded tests for bitwise operators
Fabien Potencier [Tue, 8 May 2012 06:30:42 +0000]
added tests for bitwise operators

12 years agoclarified usage of the dump function (closes #718)
Fabien Potencier [Tue, 8 May 2012 06:23:16 +0000]
clarified usage of the dump function (closes #718)

12 years agoenforced interface when adding tests, filters, functions, and node visitors from...
Fabien Potencier [Fri, 4 May 2012 06:00:53 +0000]
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.

12 years agoupdated CHANGELOG
Fabien Potencier [Thu, 3 May 2012 20:31:44 +0000]
updated CHANGELOG

12 years agomerged branch stof/mutable_datetime (PR #717)
Fabien Potencier [Thu, 3 May 2012 20:30:26 +0000]
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.

12 years agoFixed the handling of the timezone for DateTime objects
Christophe Coevoet [Thu, 3 May 2012 20:25:04 +0000]
Fixed the handling of the timezone for DateTime objects

12 years agoAdded a failing test demonstrating the bug with DateTime and timezones
Christophe Coevoet [Thu, 3 May 2012 20:20:20 +0000]
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.

12 years agoadded a missing entry in the CHANGELOG
Fabien Potencier [Sat, 28 Apr 2012 07:16:43 +0000]
added a missing entry in the CHANGELOG

12 years agofixed markup in the doc
Fabien Potencier [Fri, 27 Apr 2012 15:49:39 +0000]
fixed markup in the doc

12 years agomerged two doc files
Fabien Potencier [Fri, 27 Apr 2012 15:42:50 +0000]
merged two doc files

12 years agorenamed a doc file
Fabien Potencier [Fri, 27 Apr 2012 15:40:57 +0000]
renamed a doc file

12 years agorefactored the hacking twig doc chapter
Fabien Potencier [Fri, 27 Apr 2012 15:35:26 +0000]
refactored the hacking twig doc chapter

12 years agotweaked doc
Fabien Potencier [Fri, 27 Apr 2012 12:21:26 +0000]
tweaked doc

12 years agoadded a new recipe
Fabien Potencier [Fri, 27 Apr 2012 12:18:22 +0000]
added a new recipe

12 years agofixed embed compilation when used more than once in a template (closes #714)
Fabien Potencier [Fri, 27 Apr 2012 07:16:21 +0000]
fixed embed compilation when used more than once in a template (closes #714)

12 years agomade the autoescape tag argument optional (defaults to 'html')
Fabien Potencier [Wed, 25 Apr 2012 16:22:04 +0000]
made the autoescape tag argument optional (defaults to 'html')

12 years agoadded a note about auto-escaping and the embed tag
Fabien Potencier [Wed, 25 Apr 2012 08:34:12 +0000]
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).

12 years agoensured that each template (Twig_Node_Module) is only visited once
Fabien Potencier [Wed, 25 Apr 2012 07:17:16 +0000]
ensured that each template (Twig_Node_Module) is only visited once