forked from playframework/playframework
-
Notifications
You must be signed in to change notification settings - Fork 0
Declare anonymous function in templates
Guillaume Bort edited this page Feb 6, 2012
·
1 revision
Sometimes you need to declare a variable in your template, but since we're more in a functional environnement we will prefer to declare an anonymous function thanks to @using(){} :
<ul>
@using( Map(...) ){ values =>
@for( toto <- values ){
<li>toto</li>
}
}
</ul>