Placeholders


Most notifications need parameters sent alongside the request to function. Template and events use these parameters within placeholders. These placeholders provide substance to a message.


Syntax


{{ <Placeholder>[ | <Filter>[ : arguments,...n]...n] }}



Arguments

Parameter  – The name of the input parameter. If the parameter is not provided and there is no default filter, then the output is an empty string.


Filter  – Filters change the behavior of the parameter. Filters proceed the parameter name with pipe characters separating each filter. Some filters need extra arguments. These arguments proceed their respective filter by a colon and a comma-separated list. Below is a list of standard filters:

  append

  capitalize

  ceil

  date

  default

  divided_by

  downcase

  floor

  lstrip

  minus

  modulo

  pluralize

  plus

  prepend

  remove_first

  remove

  replace_first

  replace

  round

  rstrip

  size

  slice

  times

  truncate

  truncatewords

  upcase


Important Note:

Users wishing to alter HTML structure should surround the placeholder syntax with comments.


<!-- {{ <Placeholder>[ | <Filter>[ : arguments,...n]...n] }} -->