Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

literal soy template ${XXX}

Kegan Holtzhausen May 25, 2016

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)

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Adam
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 25, 2016

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.

0 votes
Kegan Holtzhausen May 25, 2016

Thanks @Adam Ahmed

 

/Kegan

TAGS
AUG Leaders

Atlassian Community Events