문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top