{% set type = (type is defined)?type:'default' %} {% set text = (text is defined)?text:' ' %} {% block badge_text %}{{ text | raw }}{% endblock %}