konrad/twig.git
13 years agofix duplicate call of methods if using sandbox
nikic [Thu, 17 Mar 2011 17:26:29 +0000]
fix duplicate call of methods if using sandbox

13 years agomade the charset configurable for the escape filter
Fabien Potencier [Thu, 17 Mar 2011 07:02:42 +0000]
made the charset configurable for the escape filter

13 years agoAdded a link to the Twig TextMate bundle and fixed a typo.
Anomareh [Sun, 13 Mar 2011 02:14:36 +0000]
Added a link to the Twig TextMate bundle and fixed a typo.

13 years agofixed typo
Fabien Potencier [Fri, 11 Mar 2011 18:09:05 +0000]
fixed typo

13 years agoadded a recipe
Fabien Potencier [Fri, 11 Mar 2011 12:29:40 +0000]
added a recipe

13 years ago[Twig] renamed: phpunit.xml -> phpunit.xml.dist
Pascal Borreli [Fri, 11 Mar 2011 00:58:38 +0000]
[Twig] renamed: phpunit.xml -> phpunit.xml.dist

13 years agoupdated CHANGELOG
Fabien Potencier [Mon, 21 Feb 2011 15:04:18 +0000]
updated CHANGELOG

13 years agoupdated documentation and added a unit test
Fabien Potencier [Fri, 18 Feb 2011 15:13:23 +0000]
updated documentation and added a unit test

13 years agocapturing {% set %} should give Twig_Markup
nikic [Wed, 9 Feb 2011 17:27:28 +0000]
capturing {% set %} should give Twig_Markup

13 years agoremove old code for setting all optimizers
nikic [Tue, 8 Feb 2011 20:48:51 +0000]
remove old code for setting all optimizers

13 years agoadd some more DocComments / type hints
nikic [Wed, 9 Feb 2011 17:06:57 +0000]
add some more DocComments / type hints

13 years agoadded support for macro name in the endmacro tag
Fabien Potencier [Thu, 17 Feb 2011 12:36:40 +0000]
added support for macro name in the endmacro tag

13 years agofix some typos
nikic [Tue, 8 Feb 2011 20:52:55 +0000]
fix some typos

13 years agoswap GetAttr constructor arguments for from .. import macros
nikic [Tue, 8 Feb 2011 20:39:32 +0000]
swap GetAttr constructor arguments for from .. import macros

13 years agofixed typos
Fabien Potencier [Tue, 8 Feb 2011 14:39:03 +0000]
fixed typos

13 years agoadded a way for template name to be anything
Fabien Potencier [Sun, 6 Feb 2011 20:09:23 +0000]
added a way for template name to be anything

13 years agoRevert "added the possibility to pass a readable name for templates"
Fabien Potencier [Sun, 6 Feb 2011 20:03:13 +0000]
Revert "added the possibility to pass a readable name for templates"

This reverts commit 7a7c23f197482e1c04c70f10b12c2705f358cde6.

13 years agofixed filter tag
Fabien Potencier [Sat, 5 Feb 2011 22:57:22 +0000]
fixed filter tag

13 years agoadded the possibility to pass a readable name for templates
Fabien Potencier [Fri, 4 Feb 2011 11:46:05 +0000]
added the possibility to pass a readable name for templates

13 years agofixed wrong usage of loadTemplate()
Fabien Potencier [Fri, 4 Feb 2011 11:53:23 +0000]
fixed wrong usage of loadTemplate()

13 years agofixed functions
Martin Hason [Wed, 2 Feb 2011 11:46:49 +0000]
fixed functions

13 years agofixed test covers
Martin Hason [Wed, 2 Feb 2011 11:43:59 +0000]
fixed test covers

13 years agofixed __call()
Fabien Potencier [Thu, 3 Feb 2011 23:51:34 +0000]
fixed __call()

13 years agomake Twig_Error compatible with PHP 5.3.0 >
Martin Hason [Mon, 10 Jan 2011 15:03:48 +0000]
make Twig_Error compatible with PHP 5.3.0 >

13 years agofixes an infinite loop on some Windows configurations
Fabien Potencier [Mon, 31 Jan 2011 07:47:08 +0000]
fixes an infinite loop on some Windows configurations

13 years agofixed possible warning
Fabien Potencier [Thu, 27 Jan 2011 22:12:35 +0000]
fixed possible warning

13 years agofixed the "length" filter for numbers
Fabien Potencier [Sat, 22 Jan 2011 08:12:57 +0000]
fixed the "length" filter for numbers

13 years agomade a small tweak
Fabien Potencier [Mon, 17 Jan 2011 06:45:12 +0000]
made a small tweak

13 years agoadded a note about the main advantage of creating an extension
Fabien Potencier [Sun, 16 Jan 2011 07:00:40 +0000]
added a note about the main advantage of creating an extension

13 years agofixed typo in phpdoc
Fabien Potencier [Sun, 16 Jan 2011 06:55:52 +0000]
fixed typo in phpdoc

13 years agoremoved coupling between Twig_Node and Twig_Template
Fabien Potencier [Sun, 16 Jan 2011 06:46:59 +0000]
removed coupling between Twig_Node and Twig_Template

This coupling was bad as Twig_Node should only be useful
during compilation.

So, the Twig_Node_Expression_GetAttr constants have been moved
to Twig_TemplateInterface.

13 years agomade Twig_Loader_Filesystem more flexible
Fabien Potencier [Sat, 15 Jan 2011 11:05:44 +0000]
made Twig_Loader_Filesystem more flexible

13 years agofixed Template::getAttribute() as properties in PHP are case sensitive
Fabien Potencier [Thu, 13 Jan 2011 09:35:31 +0000]
fixed Template::getAttribute() as properties in PHP are case sensitive

13 years agoadd methods and fix naming of methods in Twig_Error
Martin Hason [Mon, 10 Jan 2011 14:37:35 +0000]
add methods and fix naming of methods in Twig_Error

13 years agofixed documentation for the sandbox security policy
Fabien Potencier [Wed, 12 Jan 2011 09:39:35 +0000]
fixed documentation for the sandbox security policy

13 years agofixed text token with only '0' as content
Fabien Potencier [Mon, 10 Jan 2011 18:13:18 +0000]
fixed text token with only '0' as content

13 years agoadded a test for previous commit
Fabien Potencier [Mon, 10 Jan 2011 18:09:08 +0000]
added a test for previous commit

13 years agofixed the ternary operator
Fabien Potencier [Mon, 10 Jan 2011 18:06:37 +0000]
fixed the ternary operator

13 years agobumped version for dev
Fabien Potencier [Sun, 9 Jan 2011 08:56:15 +0000]
bumped version for dev

13 years agoupdated CHANGELOG and bumped version to 1.0.0-RC1
Fabien Potencier [Sun, 9 Jan 2011 08:47:02 +0000]
updated CHANGELOG and bumped version to 1.0.0-RC1

13 years agoremoved obsolete note from the doc
Fabien Potencier [Sun, 9 Jan 2011 06:47:39 +0000]
removed obsolete note from the doc

13 years agofixed typo in the doc
Fabien Potencier [Sat, 8 Jan 2011 16:04:16 +0000]
fixed typo in the doc

13 years agofixed doc markup
Fabien Potencier [Sat, 8 Jan 2011 14:18:32 +0000]
fixed doc markup

13 years agoadded callbacks for undefined functions and filters
Fabien Potencier [Sat, 8 Jan 2011 14:14:59 +0000]
added callbacks for undefined functions and filters

13 years agoadded a way to catch undefined filters (like functions)
Fabien Potencier [Sat, 8 Jan 2011 13:56:11 +0000]
added a way to catch undefined filters (like functions)

13 years agofixed typo
Fabien Potencier [Sat, 8 Jan 2011 13:40:26 +0000]
fixed typo

13 years agoremoved obsolete note in the doc
Fabien Potencier [Sat, 8 Jan 2011 13:38:14 +0000]
removed obsolete note in the doc

13 years agofix loader doccomments
nikic [Fri, 7 Jan 2011 16:38:36 +0000]
fix loader doccomments

13 years agofixed a notice in a unit test
Fabien Potencier [Fri, 7 Jan 2011 16:28:00 +0000]
fixed a notice in a unit test

13 years agofix line number in error exceptions
Martin Hason [Fri, 7 Jan 2011 16:12:54 +0000]
fix line number in error exceptions

13 years agoadded support for line number in Twig_Template::getAttribute()
Martin Hason [Thu, 6 Jan 2011 22:26:54 +0000]
added support for line number in Twig_Template::getAttribute()

13 years agofixed typo
Fabien Potencier [Thu, 6 Jan 2011 09:18:19 +0000]
fixed typo

13 years agonext version will be 1.0.0-RC1
Fabien Potencier [Thu, 6 Jan 2011 08:21:52 +0000]
next version will be 1.0.0-RC1

13 years agofixed typo
Fabien Potencier [Thu, 6 Jan 2011 07:51:56 +0000]
fixed typo

13 years agoadded context support for functions and filters
Fabien Potencier [Wed, 5 Jan 2011 19:15:19 +0000]
added context support for functions and filters

13 years agomade temporary variable names predictable
Fabien Potencier [Thu, 6 Jan 2011 07:37:18 +0000]
made temporary variable names predictable

13 years agooptimized filter tag implementation
Fabien Potencier [Thu, 6 Jan 2011 07:18:55 +0000]
optimized filter tag implementation

13 years agofixed cache option initialization
Fabien Potencier [Thu, 6 Jan 2011 07:03:47 +0000]
fixed cache option initialization

13 years agochanged cache file names so that they are spread over a directory tree
Fabien Potencier [Wed, 5 Jan 2011 19:33:01 +0000]
changed cache file names so that they are spread over a directory tree

13 years agoadded some missing phpdoc
Fabien Potencier [Tue, 4 Jan 2011 15:52:04 +0000]
added some missing phpdoc

13 years agoremoved unneeded wrapping nodes added during parsing
Fabien Potencier [Mon, 3 Jan 2011 17:35:07 +0000]
removed unneeded wrapping nodes added during parsing

13 years agoremoved the grammar and simple token parser code (moved to the Twig Extensions reposi...
Fabien Potencier [Mon, 3 Jan 2011 11:28:11 +0000]
removed the grammar and simple token parser code (moved to the Twig Extensions repository)

13 years agoadded a unit test for previous commit
Fabien Potencier [Mon, 3 Jan 2011 07:03:36 +0000]
added a unit test for previous commit

13 years agotrack brackets nesting in lexer
nikic [Fri, 31 Dec 2010 16:26:55 +0000]
track brackets nesting in lexer

13 years agoadd Twig_Compiler type hints
nikic [Thu, 23 Dec 2010 15:22:26 +0000]
add Twig_Compiler type hints

13 years agofix wrong error message
nikic [Fri, 31 Dec 2010 16:27:32 +0000]
fix wrong error message

13 years agoadded some missing phpdoc
Fabien Potencier [Fri, 31 Dec 2010 15:45:07 +0000]
added some missing phpdoc

13 years agoremoved references to old Twig versions in the doc
Fabien Potencier [Fri, 31 Dec 2010 14:39:30 +0000]
removed references to old Twig versions in the doc

13 years agoremoved old recipe from the doc as macros do not output their content directly anymore
Fabien Potencier [Fri, 31 Dec 2010 14:39:12 +0000]
removed old recipe from the doc as macros do not output their content directly anymore

13 years agotweaked doc
Fabien Potencier [Fri, 31 Dec 2010 11:27:49 +0000]
tweaked doc

13 years agofixed optimizer
Fabien Potencier [Thu, 30 Dec 2010 20:48:36 +0000]
fixed optimizer

13 years agoimproved error messages
Leon van der Ree [Mon, 27 Dec 2010 13:16:09 +0000]
improved error messages

13 years agofixed typo
Fabien Potencier [Thu, 30 Dec 2010 14:43:58 +0000]
fixed typo

13 years agoupdated the CHANGELOG
Fabien Potencier [Thu, 30 Dec 2010 14:39:38 +0000]
updated the CHANGELOG

13 years agofixed ternary operator when used for the default filter
Fabien Potencier [Thu, 30 Dec 2010 10:58:28 +0000]
fixed ternary operator when used for the default filter

13 years agoadded a caution about nested hashes in the docs
Fabien Potencier [Thu, 30 Dec 2010 10:40:02 +0000]
added a caution about nested hashes in the docs

13 years agoupdate include doc to use hashes and the current Environment API
nikic [Wed, 29 Dec 2010 17:45:22 +0000]
update include doc to use hashes and the current Environment API

13 years agochanged autoescape first argument from on/off to the standard true/false
Fabien Potencier [Wed, 29 Dec 2010 12:11:03 +0000]
changed autoescape first argument from on/off to the standard true/false

13 years agoadded the possibility to have tags in the global scope (outside blocks) in a child...
Fabien Potencier [Tue, 28 Dec 2010 18:30:49 +0000]
added the possibility to have tags in the global scope (outside blocks) in a child template

13 years agoreplaced {% display foo %} with {{ block('foo') }}
Fabien Potencier [Wed, 29 Dec 2010 11:41:28 +0000]
replaced {% display foo %} with {{ block('foo') }}

13 years agoreplaced {% parent %} with {{ parent() }}
Fabien Potencier [Wed, 29 Dec 2010 10:15:04 +0000]
replaced {% parent %} with {{ parent() }}

13 years agoremoved 'joined by' support for the 'for' tag as a tag should not output something...
Fabien Potencier [Tue, 28 Dec 2010 18:28:29 +0000]
removed 'joined by' support for the 'for' tag as a tag should not output something directly

13 years agoadded a note about autoescaping and concatenation in the doc
Fabien Potencier [Thu, 30 Dec 2010 08:17:01 +0000]
added a note about autoescaping and concatenation in the doc

13 years agofixed scope for macros (macros can be imported in a block or outside of a block)
Fabien Potencier [Wed, 29 Dec 2010 09:17:06 +0000]
fixed scope for macros (macros can be imported in a block or outside of a block)

    {% import "macros" as foo %}
    {% from "macros" import foo, bar as bar %}

    {% block foo %}
        {% import "macros" as foofoo %}
        {% from "macros" import foo as foofoo, bar as barbar %}

        {{ foo('something') }}
        {{ bar('something') }}

        {{ foofoo('something') }}
        {{ barbar('something') }}
    {% endblock %}

13 years agofixed typo
Fabien Potencier [Tue, 28 Dec 2010 20:05:58 +0000]
fixed typo

13 years agofixed CS
Fabien Potencier [Tue, 28 Dec 2010 18:50:01 +0000]
fixed CS

13 years agoremoved Template::callFunction
Arnaud Le Blanc [Sun, 26 Dec 2010 11:47:49 +0000]
removed Template::callFunction

13 years agoupdated doc for functions
Arnaud Le Blanc [Sat, 25 Dec 2010 17:19:04 +0000]
updated doc for functions

13 years agoAdded sandbox support for functions
Arnaud Le Blanc [Sat, 25 Dec 2010 15:08:12 +0000]
Added sandbox support for functions

13 years agoAdded auto-escaper support for functions
Arnaud Le Blanc [Fri, 24 Dec 2010 16:21:26 +0000]
Added auto-escaper support for functions

Functions' output is escaped by default and functions can declare
themselves "safe" using the "is_safe" option.

13 years agoHandle functions like filters
Arnaud Le Blanc [Fri, 24 Dec 2010 16:21:10 +0000]
Handle functions like filters

Functions are not global variables anymore. They are resolved at
compile time, and Twig_Function objects are instanciated only when
compiling.

13 years agoResolve imported functions at compile time
Arnaud Le Blanc [Thu, 23 Dec 2010 21:10:18 +0000]
Resolve imported functions at compile time

{% from %} is compiled as {% import %}, the imported module is placed in
a local variable, and calls to imported functions are compiled as calls
to module functions.

13 years agoAdded nodes representing local variables
Arnaud Le Blanc [Thu, 23 Dec 2010 21:07:22 +0000]
Added nodes representing local variables

Allows to use local PHP variables as temporary variables in compiled
templates

13 years agorenamed Template::getParentBlock() and getBlock() to diplayParentBlock() and displayB...
Fabien Potencier [Thu, 30 Dec 2010 08:30:10 +0000]
renamed Template::getParentBlock() and getBlock() to diplayParentBlock() and displayBlock(), which is semantically more correct

13 years agoupdate Core Extension doc
nikic [Thu, 23 Dec 2010 10:26:09 +0000]
update Core Extension doc

13 years agofix Exception documentation, remove use of Twig_SyntaxError
nikic [Thu, 23 Dec 2010 10:14:45 +0000]
fix Exception documentation, remove use of Twig_SyntaxError

13 years agodisallow {% set %}{% endset %}
nikic [Wed, 22 Dec 2010 16:19:37 +0000]
disallow {% set %}{% endset %}

13 years agorename $parser to $stream in parseArguments
nikic [Wed, 22 Dec 2010 16:33:28 +0000]
rename $parser to $stream in parseArguments

13 years agoadded the possibility to look at more than just the very next token
Fabien Potencier [Wed, 22 Dec 2010 10:58:10 +0000]
added the possibility to look at more than just the very next token

13 years agoreadded TokenStream::look()
Fabien Potencier [Wed, 22 Dec 2010 10:49:01 +0000]
readded TokenStream::look()