web/konrad/twig.git
14 years agochanged error messages to be more friendly
Fabien Potencier [Mon, 20 Dec 2010 13:48:07 +0000]
changed error messages to be more friendly

14 years agoconverted the cycle filter to a function
Fabien Potencier [Mon, 20 Dec 2010 07:45:45 +0000]
converted the cycle filter to a function

14 years agoconverted the constant filter to a function
Fabien Potencier [Mon, 20 Dec 2010 07:40:02 +0000]
converted the constant filter to a function

14 years agoconverted the range filter to a function
Fabien Potencier [Mon, 20 Dec 2010 07:36:03 +0000]
converted the range filter to a function

14 years agoforced functions to have fn_ as a prefix to avoid name clashes between functions...
Fabien Potencier [Sun, 19 Dec 2010 21:24:10 +0000]
forced functions to have fn_ as a prefix to avoid name clashes between functions and variables

14 years agofixed doc index
Fabien Potencier [Sun, 19 Dec 2010 20:53:00 +0000]
fixed doc index

14 years agofixed typo
Fabien Potencier [Sun, 19 Dec 2010 20:52:54 +0000]
fixed typo

14 years agorewrote the advanced chapter and documented globals and functions
Fabien Potencier [Sun, 19 Dec 2010 18:56:14 +0000]
rewrote the advanced chapter and documented globals and functions

14 years agoadded global variables
Fabien Potencier [Sun, 19 Dec 2010 13:01:21 +0000]
added global variables

14 years agomade macro return their value instead of echoing directly
Fabien Potencier [Sun, 19 Dec 2010 10:42:50 +0000]
made macro return their value instead of echoing directly

14 years agoadded from tag
Fabien Potencier [Sun, 19 Dec 2010 10:26:38 +0000]
added from tag

14 years agoadded support for functions
Fabien Potencier [Sat, 18 Dec 2010 15:20:05 +0000]
added support for functions

14 years agofixed typo
Fabien Potencier [Sun, 19 Dec 2010 10:43:03 +0000]
fixed typo

14 years agomade macros callable when sandbox mode is enabled
Fabien Potencier [Sat, 18 Dec 2010 13:31:15 +0000]
made macros callable when sandbox mode is enabled

14 years agofixed markup
Fabien Potencier [Sat, 18 Dec 2010 13:20:48 +0000]
fixed markup

14 years agoadded a new recipe
Fabien Potencier [Sat, 18 Dec 2010 13:19:40 +0000]
added a new recipe

14 years agofixed if tag documentation
Fabien Potencier [Sat, 18 Dec 2010 12:44:51 +0000]
fixed if tag documentation

14 years agoadded an exception when a macro uses a reserved name
Fabien Potencier [Sat, 18 Dec 2010 12:15:24 +0000]
added an exception when a macro uses a reserved name

14 years agochanged default filter to use the empty test
Fabien Potencier [Sat, 18 Dec 2010 11:56:44 +0000]
changed default filter to use the empty test

14 years agofixed markup in doc
Fabien Potencier [Sat, 18 Dec 2010 10:26:41 +0000]
fixed markup in doc

14 years agoadded the empty test
Fabien Potencier [Sat, 18 Dec 2010 10:26:16 +0000]
added the empty test

14 years agoremoved the 'items' filter, which has been deprecated a long time ago
Fabien Potencier [Sat, 18 Dec 2010 10:21:46 +0000]
removed the 'items' filter, which has been deprecated a long time ago

14 years agosome improvements to for tag compiler
nikic [Thu, 16 Dec 2010 22:30:30 +0000]
some improvements to for tag compiler

14 years agomade a small performance optimization
Fabien Potencier [Sat, 18 Dec 2010 07:04:21 +0000]
made a small performance optimization

14 years agoremoved n/a strings leftover
Fabien Potencier [Sat, 18 Dec 2010 07:02:24 +0000]
removed n/a strings leftover

14 years agobumped version for dev
Fabien Potencier [Thu, 16 Dec 2010 08:48:40 +0000]
bumped version for dev

14 years agoupdated CHANGELOG and bumped version to 0.9.10
Fabien Potencier [Thu, 16 Dec 2010 08:47:09 +0000]
updated CHANGELOG and bumped version to 0.9.10

14 years agotweaked merge filter
Fabien Potencier [Thu, 16 Dec 2010 08:44:10 +0000]
tweaked merge filter

14 years agoadded documentation for the merge filter
Fabien Potencier [Thu, 16 Dec 2010 08:07:55 +0000]
added documentation for the merge filter

14 years agoadded the merge filter
Fabien Potencier [Thu, 16 Dec 2010 07:10:41 +0000]
added the merge filter

14 years agoremoved the possibility to inject a lexer/parser/compiler in the environment constructor
Fabien Potencier [Wed, 15 Dec 2010 12:32:39 +0000]
removed the possibility to inject a lexer/parser/compiler in the environment constructor

14 years agosimplified code
Fabien Potencier [Wed, 15 Dec 2010 12:31:15 +0000]
simplified code

14 years agoconverted documentation to rst
Fabien Potencier [Wed, 15 Dec 2010 11:25:16 +0000]
converted documentation to rst

14 years agomoved the i18n extension to the Twig Extensions repository
Fabien Potencier [Wed, 15 Dec 2010 07:28:13 +0000]
moved the i18n extension to the Twig Extensions repository

14 years agoimprove filesystem loader cache and use '/' instead of DIRECTORY_SEPARATOR
nikic [Tue, 14 Dec 2010 17:49:35 +0000]
improve filesystem loader cache and use '/' instead of DIRECTORY_SEPARATOR

14 years agosimplified code
Fabien Potencier [Tue, 14 Dec 2010 16:52:54 +0000]
simplified code

14 years agosimplified code
Fabien Potencier [Tue, 14 Dec 2010 16:51:44 +0000]
simplified code

14 years agoadded an optimizations options to Twig_Environment
Fabien Potencier [Tue, 14 Dec 2010 16:30:45 +0000]
added an optimizations options to Twig_Environment

14 years agomade some tweak to the security check for the filesystem loader
Fabien Potencier [Tue, 14 Dec 2010 16:24:03 +0000]
made some tweak to the security check for the filesystem loader

14 years agoallow null filenames
nikic [Tue, 14 Dec 2010 15:46:28 +0000]
allow null filenames

14 years agoremoved 'is_escaper' option for filters (a left over from the previous version)
Fabien Potencier [Tue, 14 Dec 2010 15:38:11 +0000]
removed 'is_escaper' option for filters (a left over from the previous version)

14 years agoremoved support for foo.% which does not make sense
Fabien Potencier [Tue, 14 Dec 2010 15:23:56 +0000]
removed support for foo.% which does not make sense

14 years agofixed usage of operators as method names (like is, in, and not)
Fabien Potencier [Tue, 14 Dec 2010 14:19:37 +0000]
fixed usage of operators as method names (like is, in, and not)

14 years agoadded an optimizer to remove the raw filter
Fabien Potencier [Tue, 14 Dec 2010 14:10:35 +0000]
added an optimizer to remove the raw filter

14 years agochanged the order of execution for node visitors
Fabien Potencier [Tue, 14 Dec 2010 14:09:12 +0000]
changed the order of execution for node visitors

14 years agofixed security check in filesystem loader
Fabien Potencier [Tue, 14 Dec 2010 13:36:45 +0000]
fixed security check in filesystem loader

14 years agoadded some unit tests for the filesystem loader
Fabien Potencier [Tue, 14 Dec 2010 13:28:47 +0000]
added some unit tests for the filesystem loader

14 years agofixed default() filter behavior when used with strict_variables set to on
Fabien Potencier [Tue, 14 Dec 2010 13:27:28 +0000]
fixed default() filter behavior when used with strict_variables set to on

14 years agoadded an exception when trying to outdent too much
Fabien Potencier [Tue, 14 Dec 2010 11:54:32 +0000]
added an exception when trying to outdent too much

14 years agotweaked last commit
Fabien Potencier [Tue, 14 Dec 2010 10:50:47 +0000]
tweaked last commit

14 years agoAdding Twig_Environment::clearCacheFiles() to clear cache files that twig makes.
Mark Story [Sun, 12 Dec 2010 02:53:08 +0000]
Adding Twig_Environment::clearCacheFiles() to clear cache files that twig makes.
Refactoring test cases in previous commit.  Adding more tests for clearing cache files.
Fixes #192

14 years agoAdding a test case for caching template class to the filesystem.
Mark Story [Sun, 12 Dec 2010 02:42:48 +0000]
Adding a test case for caching template class to the filesystem.

14 years agofixed filesystem loader compatibility with PHAR files
Fabien Potencier [Tue, 14 Dec 2010 10:36:59 +0000]
fixed filesystem loader compatibility with PHAR files

14 years agoenhanced error messages when an unexpected token is parsed in an expression
Fabien Potencier [Tue, 14 Dec 2010 08:47:56 +0000]
enhanced error messages when an unexpected token is parsed in an expression

14 years agotweaked doc
Fabien Potencier [Tue, 14 Dec 2010 08:16:13 +0000]
tweaked doc

14 years agofixed filename not being added to syntax error messages
Fabien Potencier [Tue, 14 Dec 2010 08:08:17 +0000]
fixed filename not being added to syntax error messages

14 years agochanged array/hashes notation
Fabien Potencier [Tue, 14 Dec 2010 07:53:48 +0000]
changed array/hashes notation

14 years agofixed typo
Fabien Potencier [Tue, 14 Dec 2010 07:18:33 +0000]
fixed typo

14 years agofixed phpdoc, tweaked doc
Fabien Potencier [Tue, 14 Dec 2010 06:54:51 +0000]
fixed phpdoc, tweaked doc

14 years agoadded a note about how to turn off autoescaping
Fabien Potencier [Mon, 13 Dec 2010 17:40:51 +0000]
added a note about how to turn off autoescaping

14 years agoremoved the 'without loop' attribute for the 'for' tag
Fabien Potencier [Mon, 13 Dec 2010 14:59:12 +0000]
removed the 'without loop' attribute for the 'for' tag

14 years agoenhanced the for-loop optimizer pass 2 (patch from nikic)
Fabien Potencier [Mon, 13 Dec 2010 14:46:09 +0000]
enhanced the for-loop optimizer pass 2 (patch from nikic)

14 years agoenhanced the for-loop optimizer (patch from nikic)
Fabien Potencier [Mon, 13 Dec 2010 14:20:03 +0000]
enhanced the for-loop optimizer (patch from nikic)

14 years agoremoved usage of array_replace
Fabien Potencier [Mon, 13 Dec 2010 12:50:59 +0000]
removed usage of array_replace

14 years agoreverted inadvertently committed code
Fabien Potencier [Sun, 12 Dec 2010 13:35:15 +0000]
reverted inadvertently committed code

14 years agoadded the autoescape option to enable/disable autoescaping
Fabien Potencier [Sun, 12 Dec 2010 13:34:07 +0000]
added the autoescape option to enable/disable autoescaping

14 years agofix automatic escaping documentation
nikic [Sat, 11 Dec 2010 22:24:38 +0000]
fix automatic escaping documentation

14 years agofix comment in Optimizer NodeVisitor
nikic [Sat, 11 Dec 2010 22:14:35 +0000]
fix comment in Optimizer NodeVisitor

14 years agoremoved the newline after a comment (closes #195)
Fabien Potencier [Fri, 10 Dec 2010 06:13:32 +0000]
removed the newline after a comment (closes #195)

14 years agomade a speed optimization in Lexer
Fabien Potencier [Fri, 3 Dec 2010 17:35:29 +0000]
made a speed optimization in Lexer

14 years agomade lexer/parser/compiler lazy-loaded
Fabien Potencier [Fri, 3 Dec 2010 17:01:12 +0000]
made lexer/parser/compiler lazy-loaded

14 years agoupdated documentation on operators
Fabien Potencier [Fri, 3 Dec 2010 06:11:43 +0000]
updated documentation on operators

14 years agoadded missing info in CHANGELOG for 0.9.9
Fabien Potencier [Fri, 3 Dec 2010 05:56:36 +0000]
added missing info in CHANGELOG for 0.9.9

14 years agoadded a note in the CHANGELOG about how to remove the escaper extension
Fabien Potencier [Thu, 2 Dec 2010 15:40:55 +0000]
added a note in the CHANGELOG about how to remove the escaper extension

14 years agoadded a syntax error exception when parent block is used on a template that does...
Fabien Potencier [Thu, 2 Dec 2010 15:13:54 +0000]
added a syntax error exception when parent block is used on a template that does not extend another one

14 years agofixed parentheses placement for the ternary operator
Fabien Potencier [Thu, 2 Dec 2010 13:33:10 +0000]
fixed parentheses placement for the ternary operator

14 years agoremoved \
Fabien Potencier [Thu, 2 Dec 2010 13:18:44 +0000]
removed \

14 years agomade the Escaper and Optimizer extensions enabled by default
Fabien Potencier [Thu, 2 Dec 2010 09:26:45 +0000]
made the Escaper and Optimizer extensions enabled by default

14 years agoupdated CHANGELOG
Fabien Potencier [Thu, 2 Dec 2010 07:53:28 +0000]
updated CHANGELOG

14 years agofixed sandbox extension when used with auto output escaping
Fabien Potencier [Thu, 2 Dec 2010 07:52:42 +0000]
fixed sandbox extension when used with auto output escaping

14 years agofixed escaper when wrapping a Twig_Node_Print (the original class must be preserved)
Fabien Potencier [Thu, 2 Dec 2010 07:42:09 +0000]
fixed escaper when wrapping a Twig_Node_Print (the original class must be preserved)

14 years agorenamed a test
Fabien Potencier [Thu, 2 Dec 2010 07:31:22 +0000]
renamed a test

14 years agoupdated phpdoc
Fabien Potencier [Thu, 2 Dec 2010 07:30:47 +0000]
updated phpdoc

14 years agoadd instructions for the current date
IamPersistent [Tue, 30 Nov 2010 11:09:14 +0000]
add instructions for the current date

14 years agofix parsing of postfix expressions
Arnaud Le Blanc [Sun, 28 Nov 2010 20:01:23 +0000]
fix parsing of postfix expressions

14 years agotweaked odc intro
Fabien Potencier [Sun, 28 Nov 2010 18:21:08 +0000]
tweaked odc intro

14 years agomade some small changes to the previous commit
Fabien Potencier [Sun, 28 Nov 2010 16:14:00 +0000]
made some small changes to the previous commit

14 years agoAdded joined by statement to for loops
Jordi Boggiano [Sun, 28 Nov 2010 15:00:01 +0000]
Added joined by statement to for loops

14 years agoadded doc for the optimizer extension
Fabien Potencier [Sun, 28 Nov 2010 15:55:40 +0000]
added doc for the optimizer extension

14 years agoadded an Optimizer extension
Fabien Potencier [Sun, 28 Nov 2010 14:30:05 +0000]
added an Optimizer extension

14 years agoremoved obsolete option in unit tests
Fabien Potencier [Sun, 28 Nov 2010 13:28:07 +0000]
removed obsolete option in unit tests

14 years agoadded priority to node visitors
Fabien Potencier [Sun, 28 Nov 2010 13:17:56 +0000]
added priority to node visitors

14 years agoadded Twig_Test_Method
Fabien Potencier [Sun, 28 Nov 2010 12:53:37 +0000]
added Twig_Test_Method

14 years agobumped version for dev
Fabien Potencier [Sun, 28 Nov 2010 07:41:40 +0000]
bumped version for dev

14 years agoupdated CHANGELOG and bumped version to 0.9.9
Fabien Potencier [Sun, 28 Nov 2010 07:38:18 +0000]
updated CHANGELOG and bumped version to 0.9.9

14 years agoupdated doc for the pre_escape filter option
Arnaud Le Blanc [Sat, 27 Nov 2010 21:01:12 +0000]
updated doc for the pre_escape filter option

14 years agoAdded "pre_escape" option for filters
Arnaud Le Blanc [Tue, 16 Nov 2010 20:15:15 +0000]
Added "pre_escape" option for filters

This allows filters to get their input pre-escaped for a given context

14 years agofinished the configurability of operators
Fabien Potencier [Sun, 28 Nov 2010 07:13:15 +0000]
finished the configurability of operators

14 years agoadded file and line to Twig_Error_Runtime exceptions thrown from Twig_Template
Fabien Potencier [Sat, 27 Nov 2010 10:34:36 +0000]
added file and line to Twig_Error_Runtime exceptions thrown from Twig_Template

14 years agomade error message for strict variables more useful
Fabien Potencier [Sat, 27 Nov 2010 10:15:27 +0000]
made error message for strict variables more useful