Using event at google closure template

66 Views Asked by At

I have some problems about google closure template. I'm doing a navigator of websites, which a little kind of complex and with multiple events; now i am using template to create navigator DOM structure but fail to hand events because i don't know if i need to write event using google closure lib but not to use template to auto conduct pure js file.

My question is in this situation, Do I need to handle event separately or can using template to handle event?

Thanks everyone to answer.

1

There are 1 best solutions below

0
Lumaskcete On

I solved it.

template soy to conduct dom structure and provide function to auto conduct by {namespace}; then in goog lib js file to invoke namespace function and perform event hanlder. PS: be careful about using soyutils_usegoog.js