Closed garethbowen closed 2 years ago
We allow definition of constants for defaults for when template variables are not found, eg:
contact_name = contact: {{name || 'none'}}
However, if the default string is empty or whitespace then an error is thrown, eg:
contact_name = contact: {{name || ''}} contact_name = contact: {{name || ' '}}
The workaround is probably to remove the condition altogether (eg: just have {{name}}) but there's nothing invalid about having empty strings, so we should allow them.
{{name}}
Released in 1.0.1
We allow definition of constants for defaults for when template variables are not found, eg:
However, if the default string is empty or whitespace then an error is thrown, eg:
The workaround is probably to remove the condition altogether (eg: just have
{{name}}
) but there's nothing invalid about having empty strings, so we should allow them.