Math helpers
add (inline/block)
Parameter:
Number
to be changed (alternatively given as content)Number
value to be added
Handlebars Template {{#add 1}}15{{/add 1}}
# 16
addDate (inline/block)
Parameter:
Date
to be changed (alternatively given as content)Number
value to be addedString
type of interval steps like ‘seconds’, ‘minutes’, ‘hours’, ‘days’…
Handlebars Template {{#format "LL"}}{{addDate "1974-01-23" 1 "month"}}{{/format}}
# February 23, 1974
{{#addDate 1}}15{{/addDate 1}}
# 16
subtract (inline/block)
Parameter:
Number
to be changed (alternatively given as content)Number
value to be added
Handlebars Template {{#subtract 1}}15{{/subtract 1}}
# 14
subtractDate (inline/block)
Parameter:
Date
to be changed (alternatively given as content)Number
value to be subtractedString
type of interval steps like ‘seconds’, ‘minutes’, ‘hours’, ‘days’…
Handlebars Template {{#format "LL"}}{{subtractDate "1974-01-23" 1 "month"}}{{/format}}
# December 23, 1973