Created
March 17, 2019 01:07
-
-
Save yesthatdarya/2cd2166db8952f4229d2887a0a7713ff to your computer and use it in GitHub Desktop.
Comma-separated list template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'field.html.twig' %} | |
{% block items %} | |
{% for item in items %} | |
<span{{ item.attributes.addClass('field__item') }}> | |
{{ item.content }}{{ not loop.last ? ', ' }} | |
</span> | |
{% endfor %} | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment