Skip to content

Conversation

dirkluijk
Copy link
Contributor

This PR removes some unnecessary whitespace in the Menu twig template.

In the root block it's important to have no whitespace if the menu is empty, so that you can check if a block must be rendered.

e.g. you can do

{% set _my_meny    = block('my_menu') %}
{% if _my_menu is not empty %}
    <div class="my-meny">
        {{ _my_menu|raw }}
    </div>
{% endif %}

florianeckerstorfer pushed a commit that referenced this pull request Jun 16, 2014
Remove whitespace in root block
@florianeckerstorfer florianeckerstorfer merged commit ab54940 into braincrafted:develop Jun 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants