Skip to content

Deprecate #IfAny, #whenDepth, {{html expr}} in favor of #if, #ifDepth, {{{expr}}} #74

Merged
merged 4 commits into from Jul 23, 2014

1 participant

@JohnAlbin

The only usage in kss-node was {{#ifAny markup modifiers}} and, since modifiers
is an object and, always evals to true (even when empty), #ifAny was effectively
a dupe of Handlebars' built-in #If.

JohnAlbin added some commits Jul 18, 2014
@JohnAlbin JohnAlbin Deprecate #IfAny since #if works just as well.
The only usage in kss-node was {{#ifAny markup modifiers}} and, since modifiers
is an object and, always evals to true (even when empty), #ifAny was effectively
a dupe of Handlebars' built-in #If.
e960b36
@JohnAlbin JohnAlbin Deprecate "html" handlebars helper in favor of triple-stash. 63d52cd
@JohnAlbin JohnAlbin changed the title from Deprecate #IfAny since #if works just as well. to Deprecate #IfAny and {{html expr}} in favor of #if and {{{expr}}} Jul 19, 2014
@JohnAlbin JohnAlbin added this to the 1.0.0 milestone Jul 20, 2014
@JohnAlbin JohnAlbin changed the title from Deprecate #IfAny and {{html expr}} in favor of #if and {{{expr}}} to Deprecate #IfAny, #whenDepth, {{html expr}} in favor of #if, #ifDepth, {{{expr}}} Jul 23, 2014
@JohnAlbin

Also, renaming whenDepth to ifDepth and adding a unlessDepth. whenDepth still exists, but warns with a deprecation message.

@JohnAlbin JohnAlbin merged commit c525057 into master Jul 23, 2014

1 check passed

Details continuous-integration/travis-ci The Travis CI build passed
@JohnAlbin JohnAlbin deleted the deprecate-ifAny branch Jul 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.