Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Any editor recommendations for google closure templates?

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2013

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
Answer accepted
ig
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 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.

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2013

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
TAGS
AUG Leaders

Atlassian Community Events