Created
January 30, 2015 23:58
-
-
Save budparr/520466094b47c4b867c2 to your computer and use it in GitHub Desktop.
Serial comma with Swig Templating Language: "x and y" or "x, y, and z" (not url specific to Webhook)
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
<a href="{{ url(object) }}">{{ object.name }}</a>{% if loop.revindex != 2 %}{% if not loop.last %}, {% endif %}{% endif %}{% if loop.revindex == 2 %} and {% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment