Coding Standars
{{ foo }} {# comment #} {% if foo %}{% endif %}{{- foo -}} {#- comment -#} {%- if foo -%}{%- endif -%}{{ 1 + 2 }} {{ foo ~ bar }} {{ true ? true : false }}{{ [1, 2, 3] }} {{ {'foo': 'bar'} }}{{ 1 + (2 * 3) }}{{ 'foo' }} {{ "foo" }}{{ foo|upper|lower }} {{ user.name }} {{ user[name] }} {% for i in 1..12 %}{% endfor %}{{ foo|default('foo') }} {{ range(1..10) }}{{ [1, 2, 3] }} {{ {'foo': 'bar'} }}{% set foo = 'foo' %} {% set foo_bar = 'foo' %}{% block foo %} {% if true %} true {% endif %} {% endblock %}
Last updated