Files
notifications-admin/app/templates/components/list.html
Chris Hill-Scott bf385486cf Update test with multiple placeholders added
It wasn’t possible to test for this before because the order of
placeholders was non-deterministic. The order has been made
deterministic in https://github.com/alphagov/notifications-utils/pull/674
2019-11-27 11:30:14 +00:00

16 lines
373 B
HTML

{% macro list_of_placeholders(placeholders) %}
{{ placeholders | formatted_list(
before_each="<span class='placeholder'>((",
after_each='))</span>',
separator=' '
) }}
{%- endmacro %}
{% macro list_of_code_snippets(variables) %}
{{ variables | formatted_list(
before_each="<code>",
after_each='</code>',
separator=', '
) }}
{%- endmacro %}