Commits
-------
5fa0094 Added Capability to format DateInterval via twig date filter
Discussion
----------
Added Capability to format DateInterval via twig date filter
hi,
i was wondering why twig couldn't format my DateInterval and added it.
Either this is ok for you or we should add something similar for DateInterval because it uses a little bit different syntax to format its string (e.g. prepend with "%")
Cheers Phil
Commits
-------
68ec644 FloorDiv (//) should return integer value according to documentation
Discussion
----------
FloorDiv (//) should return integer value according to documentation
Commits
-------
eb5c9fb Recipe code formatting fix. New recipe for improved APC bytecode support
Discussion
----------
APC recipe
A new recipe to support cache invalidation when using *APC* with *apc.stat* = 0 and compiled code caching turned on. One sometimes want to test things without restarting apache. This recipe overrides *writeCacheFile* in *Twig_Environment* and calls *apc_compile_file to refresh cache.
Commits
-------
4b95621 Added: Countable interface support for empty test
Discussion
----------
Countable interface support for empty test
See [issue](https://github.com/fabpot/Twig/issues/430)
From the PHP CHANGELOG:
The flag ENT_SUBSTITUTE makes invalid multibyte sequences be replaced by
U+FFFD (UTF-8) or &#FFFD; by htmlspecialchars and htmlentities. It is an
alternative to the default behavior, which just returns an empty string and to
ENT_IGNORE, which is a security risk. The behavior follows the recommendations
of Unicode Technical Report #36.
Commits
-------
4dc490f Removing array_shift for optimisation.
Discussion
----------
Removing array_shift for optimisation.
For example we check if a template and use exception to redirect to a default template
Before : We checked ~1000 times => 100sec due to array_shift
After : ~1sec
For example we check if a template and use exception to redirect to a default template
Before : We checked ~1000 times => 100sec due to array_shift
After : ~1sec