I can't find any documentation of what "when" means in scala template. I've seen it on multiple places like scala samples - forms application. What is the meaning of when, what it's suppose to do when it's true and respectively when it's false? Are there any restriction for this construct? Is there a place where I can see the description of this and others scala template constructs?
Sample code snippet:
<li class="@("active".when(nav == "signup"))">
Thank you