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 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Friday in Off-topic

Friday Fun: Riddle me this

Happy Friday, Funmakers! We had a Community Team offsite in Austin this week, and my mind feels primed for thinkin' from all the brainstorming we did!  So, this week's Friday Fun thread w...

212 views 24 5
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