{% if <some sanity check> %}
# print some warning
{% else %}
# do the thing
{% endif %}
Is there an alternative to this which avoids unnecessary nesting? Or is my only option to use a pattern such as defining MY_MACRO (the one with sanity checks) and MY_MACRO_IMPL (actual logic).
EDIT: In other words, is this possible and how so (the # end macro pseudocode)
{% if <some sanity check %> }
# print some warning
# end macro
{% endif %}
# do the thing