iliketolearn
iliketolearn

Reputation: 710

Is it possible to automatically convert javascript to closure template format?

I'm wondering if it's possible to convert javascript to closure template format without having to manually add all of the closure tags/formatting:

{namespace example.templates}
/** 
*@param var1 Description
*@param var2 Description
*/

From my understanding, we need to write javascript with this formatting before it's compiled into a .soy file.

Upvotes: 0

Views: 271

Answers (1)

iliketolearn
iliketolearn

Reputation: 710

Using {literal} javascript here {/literal} was a decent work around as the code inside the literal tags doesn't get parsed.

Upvotes: 1

Related Questions