You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
none (please create issue for new extension templates)
Template types:
Extension templates (i.e. empty templates): Can be safely overwritten
Internal templates (i.e. templates with content): Should be only overwritten for bugfixing (please provide a PR) or when also inserting the original template with {% template %}
Tags:
{% template Foo.Bar %}: Inserts a template with the same indentation of all lines as the tag
{% template %}: Inserts the original template into an overridden template
Filters:
{{ foo | tab }}
{{ bar | csharpdocs }}
Control blocks (if/for/etc.):
Either use on one line (without -): foo{% if condition %}bar{% endif %}baz
... or on multiple lines (with - at the end):
foo
{% if condition -%}
bar
{% endif -%}
baz
Use other forms only if really needed (breaks consistency)