我正在使用带有忍者的烧瓶.
我知道您可以使用多个占位符块定义基页模板:
[ standard meta tags, etc go here ] {% block css %}{% endblock %} [ standard page header goes here ] {% block content %}{% endblock %} [ standard page footer goes here ] {% block javascript %}{% endblock %}
我知道您可以使用单个占位符定义宏:
{% macro dialog() %}[ standard dialog header ] {{ caller() }}{% endmacro %} {% call dialog() %}Log in or sign up! (etc.){% endcall %}
但是可以定义一个具有多个占位符块的宏吗?