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
Published yesterday in Agile

Are you a Jira Service Desk agent? We want to talk to you!

Are you a whiz at handling tickets and looking at how you can further optimize your workflow with automation? Do you tackle detailed customer support questions while simultaneously getting flooded wi...

24 views 0 2
Read article

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