Originally posted and answered here:
https://groups.google.com/forum/#!topic/play-framework/s-ufMIbLz3c
But when I put:
<div>
@if (request.uri == "/") { "Home Menu Selected" }
</div>
But I got:
'(' expected but ')' found.
Assuming you have the request object in scope, sadly enough you just need to remove the space after "if". Play templates are pretty sensitive about spacing. Try:
<div>
@if(request.uri == "/") { "Home Menu Selected" }
</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With