Skip to content

Trying to use caller() after an unrelated call fails. #467

@TheNuclearNexus

Description

@TheNuclearNexus

Describe the bug
Inserting the caller() block in a macro after making a call says that caller hasn't been defined.

To Reproduce

{% macro button() %}
    {% call svg::render() %}{% endcall %}
    {{ caller() }}
{% endmacro %}

Askama version
Latest github commit

Rust version
1.87.0

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