简体   繁体   中英

Play - Java vs. Scala Templates

I'm new to Play, and I realize there are two kind of templates:

1) Java-based with the symbols such as ${…}, #{tagName /}, @{…}...

2) Scala-based using only '@' as a special symbol.

I'm not sure are they supposed to exclude each other or to complement and work together.

What are the pros and cons using each one? Chose one template rule or use both?

As you can see from the latest documentation here , play templates only use @ -syntax at this moment.

If you're interested, the templating engine is now a separate project from the main playframework, I suppose to better support different engines.

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