0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server
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
..
admin 🙅🏽 Admin server split (#8142) 2017-03-14 17:03:30 +01:00
api 🔥 remove fileStorage option (#8144) 2017-03-14 10:31:33 +00:00
apps Reimplement custom theme templates (#8147) 2017-03-14 00:15:50 +01:00
auth 🎨 Ghost bootstrap: optimise requires (#8121) 2017-03-13 20:07:12 +00:00
blog 🙅🏽 Admin server split (#8142) 2017-03-14 17:03:30 +01:00
config 🙅🏽 Admin server split (#8142) 2017-03-14 17:03:30 +01:00
controllers/frontend 🙅🏽 Admin server split (#8142) 2017-03-14 17:03:30 +01:00
data Themes API activation permissions & validation (#8104) 2017-03-13 12:44:44 +01:00
events
helpers 🎨 Allow foreach else inside of get helper (#8160) 2017-03-14 17:44:52 +01:00
mail 🎨 Ghost bootstrap: optimise requires (#8121) 2017-03-13 20:07:12 +00:00
middleware 🙅🏽 Admin server split (#8142) 2017-03-14 17:03:30 +01:00
models suspend user feature (#8114) 2017-03-13 12:03:26 +00:00
permissions 🐛 fix invite permissions for editor (#7889) 2017-01-25 12:07:31 +00:00
scheduling Shows help message for broken require in scheduler adapter (#7706) 2017-01-16 21:49:41 +01:00
settings 🔥 🎨 No more updateSettingsCache (#8090) 2017-03-02 23:00:01 +01:00
storage 🔥 remove imageRelPath (#7927) 2017-02-03 14:42:05 +00:00
themes New fully-loaded & validated activeTheme concept (#8146) 2017-03-13 21:13:17 +01:00
translations suspend user feature (#8114) 2017-03-13 12:03:26 +00:00
utils 🔥 Remove legacy content zero hack (#8156) 2017-03-14 14:56:46 +01:00
views Implement custom errors 2.0 (#8148) 2017-03-14 10:06:42 +01:00
app.js 🎨 logging improvements (#7597) 2016-10-25 12:17:43 +01:00
errors.js 🛠 use Ignition for logging/errors (#7869) 2017-01-23 11:04:01 +00:00
filters.js
ghost-server.js Theme loading part 1 (#7989) 2017-02-22 00:26:19 +01:00
i18n.js
index.js 🎨 deny auto switch (#8086) 2017-03-02 19:50:58 +00:00
logging.js 🐛 forward missing logging config: rotation 2017-02-17 18:24:14 +01:00
overrides.js 🛠 update lodash,knex and bookshelf to latest versions 2016-09-26 10:20:55 +02:00
update-check.js 🎨 send LTS parameter if requesting the update check service (#7954) 2017-02-07 19:51:19 +01:00