简体   繁体   中英

Play framework 2 scala templates - JavaScript

I tried to Google but couldn't find much. I'm playing with play 2 framework and it provides you scala templates. I'm thinking to use backbone for my next project which comes with underscore templates.

How do scala templates compare with underscore templates? Which one should I use and why for heavy JSON based front end application.

  • Scala templates are server side
  • Underscore templates are client-side .

There is no further comparison possible.

Scala templates are server side and underscore templates are client side so they gets compiled by JavaScript. Therefore you can't manipulate scala templates as you do underscore.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM