{% use "bootstrap_base_layout.html.twig" %} {# Widgets #} {% block money_widget -%} {%- set prepend = not (money_pattern starts with '{{') -%} {%- set append = not (money_pattern ends with '}}') -%} {%- if prepend or append -%}