Skip to main content

Dynamic Field Functions

Text Helpers

Number Helpers

Logic Helpers

Date Helpers

Text Helpers

lowercase

Turns a string to lowercase.

Parameters: none.

Usage:













uppercase

Turns a string to uppercase. Opposite of {{lowercase}}.

Parameters: none.

Usage:













capitalizeFirst

Capitalizes the first word in a string.

Parameters: none.

Usage:













capitalizeEach

Capitalizes each word in a string.

Parameters: none.

Usage:













titleize

Capitalizes all words within a string. 

Parameters: none.

Usage:













sentence

Capitalizes the first word of each sentence in a string and converts the rest of the sentence to lowercase.

Parameters: none.

Usage:













reverse

Reverses a string.

Parameters: none.

Usage:













truncate

Truncates a string given a specified length, providing a custom string to denote an omission.

Parameters:







Usage:













center

Centers a string using non-breaking spaces.

Parameters:





Usage:

Please note the triple curly braces since this will output HTML. 













newLineToBr

Converts new line characters \n to line breaks <br>.

Usage:













sanitize

Sanitizes strings for safe use in URLs and file names.

Parameters:





Usage:













inflect

Returns the plural or singular form of a word based on a count.

Parameters:









Usage:



















ordinalize

Turns a number into an ordinal string. 

Usage:

























Number Helpers

toFixed

Returns exactly digits after the decimal place. The number is rounded if necessary, and the fractional part is padded with zeros if necessary so that it has the specified length.

Parameters:





Usage:













toPrecision

Returns the number in fixed-point or exponential notation rounded to precision significant digits.

Parameters:





Usage:













toExponential

Returns the number in exponential notation with one digit before the decimal point, rounded to fractions digits after the decimal point.

Parameters:





Usage:













toInt

Returns an integer.

Parameters: none.

Usage:













toFloat

Returns a floating point number.

Parameters: none.

Usage:













digitGrouping

Adds thousands separator to a number.

Parameters:





Usage:













add

Returns the sum of two numbers.

Parameters:





Usage:













subtract

Returns the difference of two numbers. Opposite of add

Parameters:





Usage:













divide

Returns the division of two numbers.

Parameters:





Usage:













multiply

Returns the multiplication of two numbers.

Parameters:





Usage:













floor

Returns the value rounded down to the nearest integer.

Usage:













ceil

Returns the value rounded up to the nearest integer.

Usage:













round

Returns the value rounded to the nearest integer.

Usage:













Logic Helpers

if

The If helper will check if a field value exists. If the condition is met, the code between the opening helper tag and closing helper tag will be processed.









You can also add an 'else' statement if the condition is not met. 













unless

The Unless helper will check if a field value is blank. If the condition is met, the code between the opening helper tag and closing helper tag will be processed.









You can also add an 'else' statement if the condition is not met. 













is

Conditionally render a block if the condition is true.

Parameters:





Usage:

































isnt

Conditionally render a block if the condition is false. Opposite of is.

Parameters:





Usage:





















gt

Conditionally render a block if the value is greater than a given number.

Parameters:





Usage:





















gte

Conditionally render a block if the value is greater or equal than a given number.

Parameters:





Usage:





















lt

Conditionally render a block if the value is less than a given number. Opposite of gt.

Parameters:





Usage:





















lte

Conditionally render a block if the value is less or equal than a given number. Opposite of gte.

Parameters:





Usage:





















or

Conditionally render a block if one of the values is truthy.

Parameters:





Usage:























and

Conditionally render a block if both values are truthy.

Parameters:





Usage:























Date Helpers

Format options:















































































































































































Interval Options:























formatDate

Formats a date into a string given a format. Accepts any value that can be passed to new Date()

Parameters:





Usage:

































now

Returns the current date.

Parameters:





Usage:













timeago

Returns a human-readable time phrase from the given date.

Usage:














age

Calculates the age in years between a date and now.

Parameters:





Usage:





dateAdd

Adds a specified interval to a date value.

Parameters:







Usage:





dateSub

Subtracts a specified interval from a date value.

Parameters:







Usage:





dateDiff

Calculates the difference between two dates.

Parameters:





Usage: