0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/test/unit/frontend/helpers
Hannah Wolfe 981f11da95
Added basic {{match}} helper
refs: https://github.com/TryGhost/Team/issues/759

- The match helper allows for basic equals and not equals comparisons,
Example:
  {{match title "=" "Getting Started"}}
  {{match slug "!=" "welcome"}}
- There's a lot more functionality we want to add here, so that it ends up being a replacement for {{#has}}
- However, this first iteration is already useful, especially in the context of custom theme settings
- Therefore we are adding it early, and will document it along with custom theme settings when that goes GA very soon
2021-10-14 19:36:56 +01:00
..
test_tpl
asset.test.js
author.test.js
authors.test.js
body_class.test.js
cancel_link.test.js
concat.test.js
content.test.js
date.test.js
encode.test.js
excerpt.test.js
facebook_url.test.js
foreach.test.js
get.test.js
ghost_foot.test.js
ghost_head.test.js
has.test.js
img_url.test.js
is.test.js
lang.test.js
link.test.js
link_class.test.js
match.test.js Added basic {{match}} helper 2021-10-14 19:36:56 +01:00
meta_description.test.js
meta_title.test.js
navigation.test.js
next_post.test.js
page_url.test.js
pagination.test.js
plural.test.js
post_class.test.js
prev_post.test.js
price.test.js
raw.test.js
reading_time.test.js
t.test.js
tags.test.js
title.test.js
twitter_url.test.js
url.test.js