Any editor recommendations for google closure templates?

I know this is slightly off-topic, but google closure templates seems to be used by hardly anyone except Atlassian and google.

What editor do you use for your soy files? Personally I use IDEA, and I have tried both the soy plugins, but neither of them offer anything more than simple syntax colouring. In fact the html contextual editing that you get in velocity or javascript files doesn't even work.

So far I'm failing to see a great benefit to closure templates... it's like a bad velocity (which wasn't much cop in the first place) with no IDE support. (Don't get me wrong, I see the benefit of separating presentation from client-side logic, just not with soy). But if they had the editor support I'm used to from IDEA I'd probably be quite happy.

What happened to using <script type="text/x-template" ...>, has that fallen out of favour already?

1 answer

1 accepted

0 votes
Accepted answer
Ian Grunert Atlassian Team Mar 10, 2013

Internally to Atlassian, most are using the "Non-Dairy Soy Plugin" for Intellij IDEA. It's available through the normal plugin installation process for IDEA.

Make sure to update your file extension handling after installation to so .soy isn't handled as a plain text file.

There are numerous benefits ot soy: logic separation, client-side and server-side rendering support, increased performance over velocity, and a pathway to streaming rendering. There is definitely room for improvement around the tooling, however.

Hi Ian. Thanks for that. I tried that one but it didn't even have support for the html in the template. I gave up with soy and just generated the html with js in the end.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Friday in Jira Service Desk

Looking for anyone who has switched from Zendesk to Jira Service Desk

Hi Community! The Jira Service Desk marketing team is looking for customers who have successfully switched from Zendesk to Jira Service Desk!   We’d love to hear your thoughts on the pros and ...

70 views 6 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you