Templater conditionals

The syntax is:

<%* if (condition) { -%>
Text to show if condition is true
<%* } else { -%>
Text to show if condition is false
<%* } -%>

Note that there are two details here:

  1. It is a dynamic block, starting with <%*
  2. It ends with -%> so that there are no new lines after the conditional processing.