I need to comment my code server side ( not rendered to client) in scala templates in play framework. What is the format of this tag?
相关问题
- Unusual use of the new keyword
- Get Runtime Type picked by implicit evidence
- Google Test - generate values for template class i
- What's the point of nonfinal singleton objects
- PlayFramework: how to transform each element of a
相关文章
- Gatling拓展插件开发,check(bodyString.saveAs("key"))怎么实现
- RDF libraries for Scala [closed]
- Why is my Dispatching on Actors scaled down in Akk
- How do you run cucumber with Scala 2.11 and sbt 0.
- C++ Template specialization to provide extra membe
- GRPC: make high-throughput client in Java/Scala
- Setting up multiple test folders in a SBT project
- C++: How to use unnamed template parameters in cla
These two are working for scala-0.9.1 (on play framework):
But these not:
Still, there's a lot of typing :(
The documentation does not explicitly say, but as the template engine is inspired by ASP.net Razor, I would guess it uses the same syntax, which is
Note the end comment is done with a closing @ symbol.
This works:
@{ /* Comment */ }
But I was hoping something even better (requiring less typing) is out there.
@* comment *@ works in play framework version 2