Skip to content

It should error when a same block is defined more than once #668

@GuillaumeGomez

Description

@GuillaumeGomez

In the official jinja implementation, if you have:

{%- block name %}{% endblock -%}
{%- block name %}{% endblock -%}

Then it simply crashes because the same block is defined more than once. For now we only emit warnings, but we should instead error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions