TryGhost/Ghost — pull request #1539 by niedbalski (2013-11-22 15:19:00+00:00)
Title: [Feature Request] Theme API: add has_tag helper to coreHelpers. see #1525

According to your observations made on #1525

* Added has_tag helper to coreHelpers foundation.
* Added unit tests to check has_tag works as expected.

This patch adds functionality to support the following use case:

```html

{{#hasTag "snippet" tags }}

{{content}}

{{ else }}

{{excerpt}}…

{{/hasTag}}

```

This could be pretty useful to filter post types using tags.