How do I put a literal ${XXX} into a soy template item?
The following excerpt is invalid, and I don't know how to escape the ${XXX}, tried to use '{literal}' as defined in google's documentation, but no luck. https://developers.google.com/closure/templates/docs/commands#literal
{call aui.form.textField} {param id: 'labeltemplate' /} {param value: $config.labeltemplate ? $config.labeltemplate : '1.0.${XXX}' /} {param labelContent: 'Label Template' /} {param descriptionText: 'Go label template to apply: ' + $config.labeltemplate /} {param errorTexts: $errors ? $errors['labeltemplate'] : null /} {/call}
Exception in logs
Left brace '{' not allowed within a Soy tag delimited by single braces (consider using double braces to delimit the Soy tag)
Community moderators have prevented the ability to post new answers.
Change
{param value: $config.labeltemplate ? $config.labeltemplate :
'1.0.${XXX}'
/}
To
{{param value: $config.labeltemplate ? $config.labeltemplate :
'1.0.${XXX}'
/}}
This is what your message below means when it says consider using double braces.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.