Skip to content

Instantly share code, notes, and snippets.

@halfdan
Created March 31, 2017 13:55
Show Gist options
  • Save halfdan/5bf9abb65ccc9a9bd8578ca5c8c59f9f to your computer and use it in GitHub Desktop.
Save halfdan/5bf9abb65ccc9a9bd8578ca5c8c59f9f to your computer and use it in GitHub Desktop.
{{#has tag="photo"}}
...post has the photo tag...
{{/has}}
{{#has tag="video"}}
...post has the video tag...
{{/has}}
{{#has tag="audio"}}
...post has the audio tag...
{{/has}}
{{^has tag="photo,video,audio"}}
...post has none of the mentioned tags...
{{/has}}
{{#has tag="photo"}}
...post has the photo tag...
{{else}}
{{#has tag="video"}}
...post has the video tag...
{{else}}
{{#has tag="audio"}}
...post has the audio tag...
{{else}}
...post has none of the mentioned tags...
{{/has}}
{{/has}}
{{/has}}
{{#has tag="photo,video,audio"}}
...post has any one of the photo,video,audio tags...
{{else}}
...post has none of the mentioned tags...
{{/has}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment