default

Top  Previous  Next

This is used to set a default value for a variable. If the variable is empty, the given default value is printed instead. Default takes one argument.

Example:

Input:

Template:

       {#name|default:"-=none=-"#}

Output:

       -=none=-