The from tag imports macro names into the current namespace. The tag is documented in detail in the documentation for the macro tag.

{% from 'forms.html' import input as input, textarea %}

<p>{{ input('password', '', 'password') }}</p>
<p>{{ textarea('comment') }}</p>

Was this helpful?

Copyright © 2024 Blutui.