How to escape the @ in play framework templates (view and tags)? If you add a "@" in any view in play framework it will be automatically processed by the template processor. Even if is an email address or a twitter account.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Just repeat the @ for example as @@: MyTestView.scala.html
@()
<html>
<body>
Follow me at @@myTwitter
</body>
</html>
The information can be found at http://www.playframework.com/documentation/2.0/ScalaTemplates