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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.