In a Play Framework 2.0 application, I would like to specify a CSS class for the active page. How to do it?
<li @if( ) { class="active" }>
<a href="@routes.Application.index()"> Home </a>
</li>
In particular, what do I insert in an if statement?
source
share