Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove whitespace in root block #254

Merged
merged 1 commit into from
Jun 16, 2014

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