I am using Play Framework 1.2.5. What is the difference between:
@{Application.render()}
and
@Application.render()
The first one is preferably used in the form action whereas the second one may be used for an anchor template. Both of them will be generating a URL, hence not able to understand which for the first one I need a {} surrounding braces.
Please let me know about this.
Thanks,
@{}is a short cut to generate a relative url based on a reverse route (Controller.method -> URL)@@{}gives you the absolute URL#{}refer to tags. There just so happens to be an#atag and you can dobecause within the tag, you’re actually passing the ActionDefinition when doing
@Application.logout(), not the URL.See http://www.playframework.org/documentation/1.2.5/tags