djc / askama

Type-safe, compiled Jinja-like templates for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow to have namespace for macros

GuillaumeGomez opened this issue · comments

It is currently not possible to do:

{%- import "macros.html" as macros -%} {# <--- this work #}

{% call macros::a_macro() %}

Would you be open to allow supporting this?

Wait, it's supposed to be already supported. Then I guess I'm doing something wrong on my side. Sorry for the noise.