Fabien Potencier [Sat, 22 Jan 2011 08:12:57 +0000]
fixed the "length" filter for numbers
Fabien Potencier [Mon, 17 Jan 2011 06:45:12 +0000]
made a small tweak
Fabien Potencier [Sun, 16 Jan 2011 07:00:40 +0000]
added a note about the main advantage of creating an extension
Fabien Potencier [Sun, 16 Jan 2011 06:55:52 +0000]
fixed typo in phpdoc
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.
Fabien Potencier [Sat, 15 Jan 2011 11:05:44 +0000]
made Twig_Loader_Filesystem more flexible
Fabien Potencier [Thu, 13 Jan 2011 09:35:31 +0000]
fixed Template::getAttribute() as properties in PHP are case sensitive
Martin Hason [Mon, 10 Jan 2011 14:37:35 +0000]
add methods and fix naming of methods in Twig_Error
Fabien Potencier [Wed, 12 Jan 2011 09:39:35 +0000]
fixed documentation for the sandbox security policy
Fabien Potencier [Mon, 10 Jan 2011 18:13:18 +0000]
fixed text token with only '0' as content
Fabien Potencier [Mon, 10 Jan 2011 18:09:08 +0000]
added a test for previous commit
Fabien Potencier [Mon, 10 Jan 2011 18:06:37 +0000]
fixed the ternary operator
Fabien Potencier [Sun, 9 Jan 2011 08:56:15 +0000]
bumped version for dev
Fabien Potencier [Sun, 9 Jan 2011 08:47:02 +0000]
updated CHANGELOG and bumped version to 1.0.0-RC1
Fabien Potencier [Sun, 9 Jan 2011 06:47:39 +0000]
removed obsolete note from the doc
Fabien Potencier [Sat, 8 Jan 2011 16:04:16 +0000]
fixed typo in the doc
Fabien Potencier [Sat, 8 Jan 2011 14:18:32 +0000]
fixed doc markup
Fabien Potencier [Sat, 8 Jan 2011 14:14:59 +0000]
added callbacks for undefined functions and filters
Fabien Potencier [Sat, 8 Jan 2011 13:56:11 +0000]
added a way to catch undefined filters (like functions)
Fabien Potencier [Sat, 8 Jan 2011 13:40:26 +0000]
fixed typo
Fabien Potencier [Sat, 8 Jan 2011 13:38:14 +0000]
removed obsolete note in the doc
nikic [Fri, 7 Jan 2011 16:38:36 +0000]
fix loader doccomments
Fabien Potencier [Fri, 7 Jan 2011 16:28:00 +0000]
fixed a notice in a unit test
Martin Hason [Fri, 7 Jan 2011 16:12:54 +0000]
fix line number in error exceptions
Martin Hason [Thu, 6 Jan 2011 22:26:54 +0000]
added support for line number in Twig_Template::getAttribute()
Fabien Potencier [Thu, 6 Jan 2011 09:18:19 +0000]
fixed typo
Fabien Potencier [Thu, 6 Jan 2011 08:21:52 +0000]
next version will be 1.0.0-RC1
Fabien Potencier [Thu, 6 Jan 2011 07:51:56 +0000]
fixed typo
Fabien Potencier [Wed, 5 Jan 2011 19:15:19 +0000]
added context support for functions and filters
Fabien Potencier [Thu, 6 Jan 2011 07:37:18 +0000]
made temporary variable names predictable
Fabien Potencier [Thu, 6 Jan 2011 07:18:55 +0000]
optimized filter tag implementation
Fabien Potencier [Thu, 6 Jan 2011 07:03:47 +0000]
fixed cache option initialization
Fabien Potencier [Wed, 5 Jan 2011 19:33:01 +0000]
changed cache file names so that they are spread over a directory tree
Fabien Potencier [Tue, 4 Jan 2011 15:52:04 +0000]
added some missing phpdoc
Fabien Potencier [Mon, 3 Jan 2011 17:35:07 +0000]
removed unneeded wrapping nodes added during parsing
Fabien Potencier [Mon, 3 Jan 2011 11:28:11 +0000]
removed the grammar and simple token parser code (moved to the Twig Extensions repository)
Fabien Potencier [Mon, 3 Jan 2011 07:03:36 +0000]
added a unit test for previous commit
nikic [Fri, 31 Dec 2010 16:26:55 +0000]
track brackets nesting in lexer
nikic [Thu, 23 Dec 2010 15:22:26 +0000]
add Twig_Compiler type hints
nikic [Fri, 31 Dec 2010 16:27:32 +0000]
fix wrong error message
Fabien Potencier [Fri, 31 Dec 2010 15:45:07 +0000]
added some missing phpdoc
Fabien Potencier [Fri, 31 Dec 2010 14:39:30 +0000]
removed references to old Twig versions in the doc
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
Fabien Potencier [Fri, 31 Dec 2010 11:27:49 +0000]
tweaked doc
Fabien Potencier [Thu, 30 Dec 2010 20:48:36 +0000]
fixed optimizer
Leon van der Ree [Mon, 27 Dec 2010 13:16:09 +0000]
improved error messages
Fabien Potencier [Thu, 30 Dec 2010 14:43:58 +0000]
fixed typo
Fabien Potencier [Thu, 30 Dec 2010 14:39:38 +0000]
updated the CHANGELOG
Fabien Potencier [Thu, 30 Dec 2010 10:58:28 +0000]
fixed ternary operator when used for the default filter
Fabien Potencier [Thu, 30 Dec 2010 10:40:02 +0000]
added a caution about nested hashes in the docs
nikic [Wed, 29 Dec 2010 17:45:22 +0000]
update include doc to use hashes and the current Environment API
Fabien Potencier [Wed, 29 Dec 2010 12:11:03 +0000]
changed autoescape first argument from on/off to the standard true/false
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
Fabien Potencier [Wed, 29 Dec 2010 11:41:28 +0000]
replaced {% display foo %} with {{ block('foo') }}
Fabien Potencier [Wed, 29 Dec 2010 10:15:04 +0000]
replaced {% parent %} with {{ parent() }}
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
Fabien Potencier [Thu, 30 Dec 2010 08:17:01 +0000]
added a note about autoescaping and concatenation in the doc
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 %}
Fabien Potencier [Tue, 28 Dec 2010 20:05:58 +0000]
fixed typo
Fabien Potencier [Tue, 28 Dec 2010 18:50:01 +0000]
fixed CS
Arnaud Le Blanc [Sun, 26 Dec 2010 11:47:49 +0000]
removed Template::callFunction
Arnaud Le Blanc [Sat, 25 Dec 2010 17:19:04 +0000]
updated doc for functions
Arnaud Le Blanc [Sat, 25 Dec 2010 15:08:12 +0000]
Added sandbox 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.
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.
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.
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
Fabien Potencier [Thu, 30 Dec 2010 08:30:10 +0000]
renamed Template::getParentBlock() and getBlock() to diplayParentBlock() and displayBlock(), which is semantically more correct
nikic [Thu, 23 Dec 2010 10:26:09 +0000]
update Core Extension doc
nikic [Thu, 23 Dec 2010 10:14:45 +0000]
fix Exception documentation, remove use of Twig_SyntaxError
nikic [Wed, 22 Dec 2010 16:19:37 +0000]
disallow {% set %}{% endset %}
nikic [Wed, 22 Dec 2010 16:33:28 +0000]
rename $parser to $stream in parseArguments
Fabien Potencier [Wed, 22 Dec 2010 10:58:10 +0000]
added the possibility to look at more than just the very next token
Fabien Potencier [Wed, 22 Dec 2010 10:49:01 +0000]
readded TokenStream::look()
nikic [Mon, 20 Dec 2010 15:41:30 +0000]
TokenStream changes:
* remove unused look() and rewind()
* do not shift tokens, but increase a pointer
nikic [Mon, 20 Dec 2010 15:30:50 +0000]
improve lexer (causes changes in token stream, token and parser)
Fabien Potencier [Wed, 22 Dec 2010 10:33:29 +0000]
fixed typo
nikic [Mon, 20 Dec 2010 17:39:16 +0000]
remove $is_multitarget return in parseMultitargetExpression
Furthermore slightly reordered code thus removing redundant expect()
Fabien Potencier [Mon, 20 Dec 2010 18:05:45 +0000]
added some unit tests for previous commit
nikic [Mon, 20 Dec 2010 17:36:34 +0000]
One should only be able to assign to variables
nikic [Mon, 20 Dec 2010 17:34:49 +0000]
remove unused $lineno variable
nikic [Mon, 20 Dec 2010 17:32:42 +0000]
change while(1) to while(true)
nikic [Mon, 20 Dec 2010 17:31:31 +0000]
remove "(,)" hint from syntax error messages (the expect function will do that already)
nikic [Mon, 20 Dec 2010 17:27:01 +0000]
use the passed $token in isUnary and isBinary of ExpressionParser
nikic [Mon, 20 Dec 2010 16:05:28 +0000]
Grammer/Hash: array -> hash
Fabien Potencier [Mon, 20 Dec 2010 14:05:29 +0000]
tweaked error message
Fabien Potencier [Mon, 20 Dec 2010 13:48:07 +0000]
changed error messages to be more friendly
Fabien Potencier [Mon, 20 Dec 2010 07:45:45 +0000]
converted the cycle filter to a function
Fabien Potencier [Mon, 20 Dec 2010 07:40:02 +0000]
converted the constant filter to a function
Fabien Potencier [Mon, 20 Dec 2010 07:36:03 +0000]
converted the range filter to a function
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
Fabien Potencier [Sun, 19 Dec 2010 20:53:00 +0000]
fixed doc index
Fabien Potencier [Sun, 19 Dec 2010 20:52:54 +0000]
fixed typo
Fabien Potencier [Sun, 19 Dec 2010 18:56:14 +0000]
rewrote the advanced chapter and documented globals and functions
Fabien Potencier [Sun, 19 Dec 2010 13:01:21 +0000]
added global variables
Fabien Potencier [Sun, 19 Dec 2010 10:42:50 +0000]
made macro return their value instead of echoing directly
Fabien Potencier [Sun, 19 Dec 2010 10:26:38 +0000]
added from tag
Fabien Potencier [Sat, 18 Dec 2010 15:20:05 +0000]
added support for functions
Fabien Potencier [Sun, 19 Dec 2010 10:43:03 +0000]
fixed typo
Fabien Potencier [Sat, 18 Dec 2010 13:31:15 +0000]
made macros callable when sandbox mode is enabled