mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 07:51:55 +03: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}} |
||
---|---|---|
.. | ||
test_tpl | ||
asset_spec.js | ||
author_spec.js | ||
body_class_spec.js | ||
content_spec.js | ||
date_spec.js | ||
encode_spec.js | ||
excerpt_spec.js | ||
facebook_url_spec.js | ||
foreach_spec.js | ||
get_spec.js | ||
ghost_foot_spec.js | ||
ghost_head_spec.js | ||
has_spec.js | ||
image_spec.js | ||
is_spec.js | ||
meta_description_spec.js | ||
meta_title_spec.js | ||
navigation_spec.js | ||
next_post_spec.js | ||
page_url_spec.js | ||
pagination_spec.js | ||
plural_spec.js | ||
post_class_spec.js | ||
prev_post_spec.js | ||
tags_spec.js | ||
title_spec.js | ||
twitter_url_spec.js | ||
url_spec.js | ||
utils.js |