mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
f52e3e779b
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}} |
||
---|---|---|
.. | ||
admin | ||
api | ||
apps | ||
auth | ||
blog | ||
config | ||
controllers/frontend | ||
data | ||
events | ||
helpers | ||
middleware | ||
models | ||
permissions | ||
scheduling | ||
settings | ||
storage | ||
themes | ||
translations | ||
utils | ||
views | ||
app.js | ||
errors.js | ||
filters.js | ||
ghost-server.js | ||
i18n.js | ||
index.js | ||
logging.js | ||
overrides.js | ||
update-check.js |