fixed scope for macros (macros can be imported in a block or outside of a block)
authorFabien Potencier <fabien.potencier@gmail.com>
Wed, 29 Dec 2010 09:17:06 +0000 (10:17 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Thu, 30 Dec 2010 08:51:57 +0000 (09:51 +0100)
commitac7803f9fc1a2d5007f780c5319f1b6e3c6221cd
treeaaf1fe74e68c24dbf311fdcee5eec9fbe45b9f01
parentb0e766f25688784fdb14bf7252c190e2f35ae049
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 %}
lib/Twig/Node/Expression/AssignLocalName.php [deleted file]
lib/Twig/Node/Expression/LocalName.php [deleted file]
lib/Twig/Node/From.php
lib/Twig/Parser.php
lib/Twig/TokenParser/Filter.php