Filters are used in template expressions to transform the expression before it gets rendered.

append

String: StringString

Appends a string to what precedes it which is assumed to be a string already.

Example

${"Sam" | append: " lives here."} => "Sam lives here"

asset_tag

StringString

Example

${"asset_1" | asset_tag}

asset_path

StringString

Example

${"asset_1" | asset_path}

bsel

Boolean: ListAny

Example

camelize

StringString

Convert a string to Camel Case.

Example

${"sam spade" | camelize} => "samSpade"

capitalize

StringString

Make sure the first character of the string is upper case.

Example

${"matt" | capitalize} => "Matt"

contains

String: StringBoolean

Example

${"Sam Spade" | contains: "Spade"} => true

dec

NumberNumber

Example

${9 | inc} => 10

decision

Example


downcase

StringString

Example

${"Sam Spade"} => "sam spade"

ends_with

String: StringString

Example

${"Sam Spade" | ends_with: "Spade"} => true

event

Example


gt

Number: NumberBoolean

Example

${9 | gt: 10} => false
${10 | gt: 9} => true

gte

Number: NumberBoolean

Example

${9 | gte: 10} => false
${10 | gte: 10} => true

eq

Number: NumberBoolean

Example


inc

NumberNumber

Example


lt

NumberBoolean

Example


lte

NumberBoolean

Example


ne

NumberBoolean

Example


pluralize

StringString

Example


prepend

StringString

Example


scene_switch

Example


scene_interlude

Example


scene_resume

Example


sel

Example


starts_with

StringBoolean

Example


split

Example


string

AnythingString

Example


trim

Example


upcase

StringString

Example