konrad/twig.git
12 years agofixed CS
Julien Brochet [Sat, 14 Jan 2012 14:56:01 +0000]
fixed CS

12 years agoadded support for optional length in the slice [] notation
Fabien Potencier [Sat, 14 Jan 2012 08:27:35 +0000]
added support for optional length in the slice [] notation

12 years agoadded a slice filter
Fabien Potencier [Sat, 14 Jan 2012 07:48:59 +0000]
added a slice filter

12 years agofixed core filters phpdoc
Fabien Potencier [Sat, 14 Jan 2012 07:25:47 +0000]
fixed core filters phpdoc

12 years agoadded string support for the reverse filter
Fabien Potencier [Sat, 14 Jan 2012 07:24:24 +0000]
added string support for the reverse filter

12 years agotweaked doc for the merge filter
Fabien Potencier [Fri, 13 Jan 2012 12:14:08 +0000]
tweaked doc for the merge filter

12 years agotweaked documentation
Fabien Potencier [Fri, 13 Jan 2012 09:18:17 +0000]
tweaked documentation

12 years agofixed some phpdoc
Fabien Potencier [Wed, 11 Jan 2012 12:27:00 +0000]
fixed some phpdoc

12 years agofixed charset for previous commit
Fabien Potencier [Mon, 9 Jan 2012 19:48:27 +0000]
fixed charset for previous commit

12 years agofixed the empty test and the length filter for Twig_Markup instances (closes #589)
Fabien Potencier [Mon, 9 Jan 2012 19:32:34 +0000]
fixed the empty test and the length filter for Twig_Markup instances (closes #589)

12 years agoadded one more rule in the coding standards (closes #587)
Fabien Potencier [Mon, 9 Jan 2012 07:04:17 +0000]
added one more rule in the coding standards (closes #587)

12 years agoadded one more rule to the coding standards
Fabien Potencier [Sun, 8 Jan 2012 20:24:46 +0000]
added one more rule to the coding standards

12 years agore-added the version in composer.json (if not, the version on packagist is master...
Fabien Potencier [Sun, 8 Jan 2012 19:40:34 +0000]
re-added the version in composer.json (if not, the version on packagist is master-dev instead of the more desirable 1.6-dev)

12 years agomerged branch aerialls/patch-1 (PR #585)
Fabien Potencier [Sun, 8 Jan 2012 19:38:51 +0000]
merged branch aerialls/patch-1 (PR #585)

Commits
-------

3c934f4 Update doc/coding_standards.rst

Discussion
----------

Update doc/coding_standards.rst

12 years agoUpdate doc/coding_standards.rst
Julien Brochet [Sun, 8 Jan 2012 19:37:45 +0000]
Update doc/coding_standards.rst

12 years agofixed markup in doc
Fabien Potencier [Sun, 8 Jan 2012 19:24:02 +0000]
fixed markup in doc

12 years agoadded coding standards in the docs
Fabien Potencier [Sun, 8 Jan 2012 19:19:11 +0000]
added coding standards in the docs

12 years agomerged branch lyrixx/patch-dead-code (PR #584)
Fabien Potencier [Sun, 8 Jan 2012 16:57:34 +0000]
merged branch lyrixx/patch-dead-code (PR #584)

Commits
-------

6ca2ca6 [Tests] Removed dead code in core test

Discussion
----------

[Tests] Removed dead code in core test

$core is never used. Test keeps passing.

12 years ago[Tests] Removed dead code in core test
Grégoire Pineau [Sun, 8 Jan 2012 16:27:45 +0000]
[Tests] Removed dead code in core test

12 years agoadded a recipe for stateful node visitors
Fabien Potencier [Sat, 7 Jan 2012 08:53:33 +0000]
added a recipe for stateful node visitors

12 years agoadded missing phpdoc
Fabien Potencier [Fri, 6 Jan 2012 19:35:29 +0000]
added missing phpdoc

12 years agoadded a date function to ease date comparison (closes #571)
Fabien Potencier [Fri, 6 Jan 2012 19:31:06 +0000]
added a date function to ease date comparison (closes #571)

12 years agoupdated CHANGELOG
Fabien Potencier [Fri, 6 Jan 2012 18:48:27 +0000]
updated CHANGELOG

12 years agofixed unary operators precedence (closes #583)
Fabien Potencier [Fri, 6 Jan 2012 18:47:50 +0000]
fixed unary operators precedence (closes #583)

12 years agomerged branch vicb/doc/use (PR #581)
Fabien Potencier [Fri, 6 Jan 2012 11:47:43 +0000]
merged branch vicb/doc/use (PR #581)

Commits
-------

28b9b7b [Twig] Add a note about multiple inheritance (use tag)

Discussion
----------

[Twig] Add a note about multiple inheritance (use tag)

To add some visibility to this feature

12 years ago[Twig] Add a note about multiple inheritance (use tag)
Victor Berchet [Fri, 6 Jan 2012 08:18:08 +0000]
[Twig] Add a note about multiple inheritance (use tag)

12 years agobumped version to 1.6.0-DEV
Fabien Potencier [Thu, 5 Jan 2012 14:35:20 +0000]
bumped version to 1.6.0-DEV

12 years agoprepared the 1.5.1 release
Fabien Potencier [Thu, 5 Jan 2012 14:34:14 +0000]
prepared the 1.5.1 release

12 years agofixed regression in string parsing (closes #580)
Fabien Potencier [Thu, 5 Jan 2012 14:18:26 +0000]
fixed regression in string parsing (closes #580)

12 years agomerged branch lenar/patch-1 (PR #578)
Fabien Potencier [Wed, 4 Jan 2012 14:40:11 +0000]
merged branch lenar/patch-1 (PR #578)

Commits
-------

5214794 compiles -> compile

Discussion
----------

compiles -> compile

12 years agocompiles -> compile
Lenar Lõhmus [Wed, 4 Jan 2012 14:26:15 +0000]
compiles -> compile

12 years agoadded a note about the Twig extension DLL for Windows
Fabien Potencier [Wed, 4 Jan 2012 14:15:01 +0000]
added a note about the Twig extension DLL for Windows

12 years agobumped version to 1.6.0-DEV
Fabien Potencier [Wed, 4 Jan 2012 13:31:46 +0000]
bumped version to 1.6.0-DEV

12 years agoprepared the 1.5.0 release
Fabien Potencier [Wed, 4 Jan 2012 13:20:58 +0000]
prepared the 1.5.0 release

12 years agofixed doc (closes #577)
Fabien Potencier [Tue, 3 Jan 2012 20:52:22 +0000]
fixed doc (closes #577)

12 years agomerged branch lyrixx/patch-1 (PR #576)
Fabien Potencier [Tue, 3 Jan 2012 20:50:50 +0000]
merged branch lyrixx/patch-1 (PR #576)

Commits
-------

7e8df56 Fixed CS

Discussion
----------

Fixed CS

I just fixed the CS in the doc

12 years agoFixed CS
Grégoire Pineau [Tue, 3 Jan 2012 17:31:08 +0000]
Fixed CS

12 years agofixed the join filter when several items have the same key
Fabien Potencier [Mon, 2 Jan 2012 14:10:19 +0000]
fixed the join filter when several items have the same key

12 years agosimplified code
Fabien Potencier [Mon, 2 Jan 2012 13:20:16 +0000]
simplified code

12 years agoadded a unit test
Fabien Potencier [Mon, 2 Jan 2012 12:14:06 +0000]
added a unit test

12 years agoadded Traversable objects support for the join filter
Fabien Potencier [Mon, 2 Jan 2012 12:10:08 +0000]
added Traversable objects support for the join filter

12 years agoprepared the 1.5.0-RC2 release
Fabien Potencier [Fri, 30 Dec 2011 15:23:51 +0000]
prepared the 1.5.0-RC2 release

12 years agoupdated doc for the date filter
Fabien Potencier [Fri, 30 Dec 2011 08:21:01 +0000]
updated doc for the date filter

12 years agoadded a way to set the default global date interval format
Fabien Potencier [Fri, 30 Dec 2011 08:15:53 +0000]
added a way to set the default global date interval format

12 years agorefactored date filter code
Fabien Potencier [Fri, 30 Dec 2011 07:58:12 +0000]
refactored date filter code

12 years agomerged branch alefranz/patch-2 (PR #575)
Fabien Potencier [Fri, 30 Dec 2011 07:50:36 +0000]
merged branch alefranz/patch-2 (PR #575)

Commits
-------

b295274 fix Date Format filter: DateInterval does not provide setTimezone()

Discussion
----------

fix Date Format filter: DateInterval does not provide setTimezone()

12 years agofix Date Format filter: DateInterval does not provide setTimezone()
alefranz [Thu, 29 Dec 2011 18:46:53 +0000]
fix Date Format filter: DateInterval does not provide setTimezone()

12 years agorefactored Twig_Template::display() to ease its extension
Fabien Potencier [Wed, 28 Dec 2011 22:05:59 +0000]
refactored Twig_Template::display() to ease its extension

12 years agotweaked previous merge
Fabien Potencier [Wed, 28 Dec 2011 19:34:32 +0000]
tweaked previous merge

12 years agomerged branch markstory/number-format (PR #573)
Fabien Potencier [Wed, 28 Dec 2011 19:32:43 +0000]
merged branch markstory/number-format (PR #573)

Commits
-------

e3b81ad Add documentation page for number_format.
0edcfdd Add number_format filter.

Discussion
----------

Implement number_format filter

Implement a `number_format` filter that wraps the native PHP `number_format`.

Fixes #417

12 years agoAdd documentation page for number_format.
Mark Story [Wed, 28 Dec 2011 16:13:27 +0000]
Add documentation page for number_format.

12 years agoAdd number_format filter.
Mark Story [Wed, 28 Dec 2011 15:39:04 +0000]
Add number_format filter.

Refs #417

12 years agofixed Twig_Node_Expression_Array::hasElement()
Fabien Potencier [Mon, 26 Dec 2011 21:06:43 +0000]
fixed Twig_Node_Expression_Array::hasElement()

12 years agoprepared the 1.5.0-RC1 release
Fabien Potencier [Mon, 26 Dec 2011 10:40:36 +0000]
prepared the 1.5.0-RC1 release

12 years agofixed markup
Fabien Potencier [Mon, 26 Dec 2011 10:32:17 +0000]
fixed markup

12 years agoadded missing doc for the do tag
Fabien Potencier [Mon, 26 Dec 2011 10:21:22 +0000]
added missing doc for the do tag

12 years agofixed typo
Fabien Potencier [Mon, 26 Dec 2011 10:17:02 +0000]
fixed typo

12 years agochanged hash key expression support (expression must now be enclosed with parentheses...
Fabien Potencier [Mon, 26 Dec 2011 08:35:38 +0000]
changed hash key expression support (expression must now be enclosed with parentheses and hash keys can now be names)

12 years agomerged branch jeserkin/jeserkin (PR #570)
Fabien Potencier [Mon, 26 Dec 2011 08:08:00 +0000]
merged branch jeserkin/jeserkin (PR #570)

Commits
-------

fd78ec0 Fixed PhpDoc for Twig_TokenParserInterface and all other TokenParsers

Discussion
----------

Fixed PhpDoc for Twig_TokenParserInterface and all other TokenParsers

12 years agoFixed PhpDoc for Twig_TokenParserInterface and all other TokenParsers
Eugene Serkin [Sun, 25 Dec 2011 23:55:03 +0000]
Fixed PhpDoc for Twig_TokenParserInterface and all other TokenParsers

12 years agoadded convenience methods to manipulate an array node
Fabien Potencier [Sun, 25 Dec 2011 21:34:12 +0000]
added convenience methods to manipulate an array node

12 years agoRevert "Revert "merged branch arnaud-lb/hash-key-expr (PR #514)""
Fabien Potencier [Sat, 24 Dec 2011 08:22:35 +0000]
Revert "Revert "merged branch arnaud-lb/hash-key-expr (PR #514)""

This reverts commit 99b2c5bf99ea299685886e33d54fbbcd6348b849.

12 years agomerged branch javiereguiluz/add-nl2br-notice (PR #568)
Fabien Potencier [Fri, 23 Dec 2011 10:29:22 +0000]
merged branch javiereguiluz/add-nl2br-notice (PR #568)

Commits
-------

7194b1a Added a notice in the `nl2br` filter documentation about the proper Twig version to use it

Discussion
----------

Added a notice in the `nl2br` filter documentation ...

... about the proper Twig version to use it (1.5)

12 years agoAdded a notice in the `nl2br` filter documentation about the proper Twig version...
Javier Eguíluz [Fri, 23 Dec 2011 09:26:49 +0000]
Added a notice in the `nl2br` filter documentation about the proper Twig version to use it

12 years agoRevert "merged branch arnaud-lb/hash-key-expr (PR #514)"
Fabien Potencier [Fri, 23 Dec 2011 07:58:23 +0000]
Revert "merged branch arnaud-lb/hash-key-expr (PR #514)"

This reverts commit 8665c6463461ccd0afec1ff943b45b56ad01a06e, reversing
changes made to 4aba337cda03b0170cbf30b43cd82cb83146f2b4.

12 years agoupdated doc
Fabien Potencier [Thu, 22 Dec 2011 21:48:48 +0000]
updated doc

12 years agoupdated CHANGELOG
Fabien Potencier [Thu, 22 Dec 2011 21:42:44 +0000]
updated CHANGELOG

12 years agomerged branch arnaud-lb/hash-key-expr (PR #514)
Fabien Potencier [Thu, 22 Dec 2011 21:41:37 +0000]
merged branch arnaud-lb/hash-key-expr (PR #514)

Commits
-------

542e9e7 added getKeyValuePairs() on Twig_Node_Expression_Array
3f64f1d added test for hash keys
4bdb3a9 fixed tests
3b1f269 support any expression as hash key

Discussion
----------

Allow hash keys to be any expression

This allows hash keys to be any expression

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

by fabpot at 2011/12/07 02:08:19 -0800

I had not implemented this feature back then because I'm not sure it makes sense to support it in the context of a templating system. I'm still not convinced that this is useful.

12 years agoadded a do tag (closes #446)
Fabien Potencier [Thu, 22 Dec 2011 21:32:27 +0000]
added a do tag (closes #446)

12 years agoadded doc for the flush tag
Fabien Potencier [Thu, 22 Dec 2011 18:32:51 +0000]
added doc for the flush tag

12 years agoadded IDE support for Coda in the doc (closes #566)
Fabien Potencier [Thu, 22 Dec 2011 18:25:03 +0000]
added IDE support for Coda in the doc (closes #566)

12 years agotweaked doc (closes #567)
Fabien Potencier [Thu, 22 Dec 2011 13:20:20 +0000]
tweaked doc (closes #567)

12 years agoreplaced zend_error_noreturn calls to zend_error as zend_error_noreturn is not export...
Fabien Potencier [Thu, 22 Dec 2011 13:17:52 +0000]
replaced zend_error_noreturn calls to zend_error as zend_error_noreturn is not exported (closes #554)

12 years agomerged branch arnaud-lb/ext-fix (PR #565)
Fabien Potencier [Wed, 21 Dec 2011 19:27:52 +0000]
merged branch arnaud-lb/ext-fix (PR #565)

Commits
-------

b26d69a removed bogus TSRMLS_CCs

Discussion
----------

Fix strict mode in extension when building in ZTS mode

This removes a few misplaced TSRMLS_CCs causing if() expressions to always evaluate to true. This caused twig_template_get_attributes to always behave as if strict mode were disabled.

12 years agofixed typo
Fabien Potencier [Wed, 21 Dec 2011 19:17:43 +0000]
fixed typo

12 years agoremoved bogus TSRMLS_CCs
Arnaud Le Blanc [Wed, 21 Dec 2011 18:48:50 +0000]
removed bogus TSRMLS_CCs

12 years agoadded a flush tag
Fabien Potencier [Wed, 21 Dec 2011 18:34:14 +0000]
added a flush tag

12 years agomerged branch nikic/fixLoopIncrement (PR #563)
Fabien Potencier [Wed, 21 Dec 2011 10:25:50 +0000]
merged branch nikic/fixLoopIncrement (PR #563)

Commits
-------

8255b8b Fix test for previous commit
834ce4c Fix loop increment on some for loops (fix #562)

Discussion
----------

Fix loop increment

PR for #562.

12 years agoFix test for previous commit
nikic [Wed, 21 Dec 2011 10:05:19 +0000]
Fix test for previous commit

12 years agoFix loop increment on some for loops (fix #562)
nikic [Wed, 21 Dec 2011 10:00:04 +0000]
Fix loop increment on some for loops (fix #562)

The inner loop incrementing code was not added on for loops where the body was not a Twig_Node (but e.g. a Twig_Node_If)

12 years agofixed dump when xdebug.overload_var_dump is not defined in php.ini
Fabien Potencier [Sun, 18 Dec 2011 19:54:12 +0000]
fixed dump when xdebug.overload_var_dump is not defined in php.ini

12 years agoadded support for dynamically named filters and functions
Fabien Potencier [Sun, 20 Nov 2011 08:00:09 +0000]
added support for dynamically named filters and functions

12 years agomade the dump function registration explicit and disable its output when debug is off
Fabien Potencier [Sun, 18 Dec 2011 19:20:13 +0000]
made the dump function registration explicit and disable its output when debug is off

12 years agofixed dump function when the context contains Twig_Template instances
Fabien Potencier [Sun, 18 Dec 2011 19:11:39 +0000]
fixed dump function when the context contains Twig_Template instances

12 years agoadded a dump function to help debugging templates
Fabien Potencier [Sun, 18 Dec 2011 17:08:58 +0000]
added a dump function to help debugging templates

12 years agofixed the random function
Fabien Potencier [Sun, 18 Dec 2011 14:08:12 +0000]
fixed the random function

12 years agoadded a nl2br filter
Fabien Potencier [Sun, 18 Dec 2011 11:28:42 +0000]
added a nl2br filter

12 years agoadded missing documentation for the random function
Fabien Potencier [Sun, 18 Dec 2011 11:16:35 +0000]
added missing documentation for the random function

12 years agoadded a random function
Fabien Potencier [Sun, 18 Dec 2011 10:24:52 +0000]
added a random function

12 years agoadded a way to change the default format for the date filter
Fabien Potencier [Sun, 18 Dec 2011 10:12:38 +0000]
added a way to change the default format for the date filter

12 years agomerged branch arnaud-lb/ext-crash2 (PR #560)
Fabien Potencier [Sat, 17 Dec 2011 07:58:24 +0000]
merged branch arnaud-lb/ext-crash2 (PR #560)

Commits
-------

9e6f285 fixed crash in twig_template_get_attributes when input is not an array or object

Discussion
----------

Fix crash in twig_template_get_attributes when input is not an array or object

This fixes a crash when the input of twig_template_get_attributes() is not an array or object, and strict mode is enabled.

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

by nikic at 2011/12/16 12:03:21 -0800

Could you maybe place the exception tests in a different method?

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

by arnaud-lb at 2011/12/16 12:13:35 -0800

This method already expects many of its inputs to cause an exception to be thrown (it tests getAttribute() in strict mode, and in many cases the attribute isn't defined). I don't see a real benefit from moving these tests in a separate method in this case.

12 years agofixed crash in twig_template_get_attributes when input is not an array or object
Arnaud Le Blanc [Thu, 15 Dec 2011 19:54:24 +0000]
fixed crash in twig_template_get_attributes when input is not an array or object

12 years agoupdated NetBeans plugin URL
Fabien Potencier [Fri, 16 Dec 2011 15:05:09 +0000]
updated NetBeans plugin URL

12 years agomerged branch arnaud-lb/ext-crash (PR #558)
Fabien Potencier [Sun, 11 Dec 2011 15:53:52 +0000]
merged branch arnaud-lb/ext-crash (PR #558)

Commits
-------

c920344 code style
50da1a2 don't modify function name

Discussion
----------

Fix crash in extension

This fixes a crash caused by `php_strtolower()` modifying its input. (Crashes on amd64, but not on x86 for me.)

12 years agocode style
Arnaud Le Blanc [Sat, 10 Dec 2011 13:49:52 +0000]
code style

12 years agodon't modify function name
Arnaud Le Blanc [Sat, 10 Dec 2011 13:48:20 +0000]
don't modify function name

12 years agomerged branch JEDIBC/master (PR #556)
Fabien Potencier [Fri, 9 Dec 2011 09:27:23 +0000]
merged branch JEDIBC/master (PR #556)

Commits
-------

3bb822e . misspell function _twig_convert_encoding -> twig_convert_encoding

Discussion
----------

misspell function _twig_convert_encoding -> twig_convert_encoding

Located in _twig_escape_js_callback, the function call was misspelled and raised a PHP Fatal error:  Call to undefined function _twig_convert_encoding() in ~/www/project/vendors/Twig/Extension/Core.php on line 585

12 years ago. misspell function _twig_convert_encoding -> twig_convert_encoding
JEDIBC [Fri, 9 Dec 2011 09:08:13 +0000]
. misspell function _twig_convert_encoding -> twig_convert_encoding

12 years agomoved some common compiled code to Twig_Template
Fabien Potencier [Thu, 8 Dec 2011 18:14:07 +0000]
moved some common compiled code to Twig_Template

12 years agofixed the lexer when an operator ending with a letter ends a line
Fabien Potencier [Thu, 8 Dec 2011 08:29:20 +0000]
fixed the lexer when an operator ending with a letter ends a line