Ghost/core/test
Hannah Wolfe f52e3e779b 🎨 Allow foreach else inside of get helper (#8160)
closes #7242

- before this, the get helper's else was used for empty resultsets
- the argument was made that we should fall through to a foreach or with helper's else instead
- I agree that this is the more natural, consistent approach, and so would like to change it for Ghost 1.0

E.g. as of this PR we now have:

{{#get "posts" filter="tag:doesnt-exist"}}
  {{#foreach posts}}
  {{else}}
    this ges executed because there are no results
  {{/foreach}}
{{/get}}

instead of

{{#get "posts" filter="tag:doesnt-exist"}}
  {{#foreach posts}}
  {{else}}
  {{/foreach}}
{{each}}
    this ges executed because there are no results
{{/get}}
2017-03-14 17:44:52 +01:00
..
functional 🙅🏽 Admin server split (#8142) 2017-03-14 17:03:30 +01:00
integration 🔥 remove fileStorage option (#8144) 2017-03-14 10:31:33 +00:00
unit 🎨 Allow foreach else inside of get helper (#8160) 2017-03-14 17:44:52 +01:00
utils suspend user feature (#8114) 2017-03-13 12:03:26 +00:00
.jshintrc Remove jshint rules that are no longer supported 2015-01-23 21:00:37 +00:00