[2.0.4 Scala] template and setting val's

48 views
Skip to first unread message

danny

unread,
Nov 15, 2012, 6:40:51 AM11/15/12
to play-fr...@googlegroups.com
Hi

@{ val ncatname = category.toLowerCase }

Why does this not work?

The compiler does not give errors BUT when calling ncatname the compiler displays:  not found: value ncatname

Thanks

Julien Richard-Foy

unread,
Nov 15, 2012, 7:42:36 AM11/15/12
to play-fr...@googlegroups.com
You can currently write:

@defining(category.toLowerCase) { ncatname =>

Here I can use @ncatname.

}

danny

unread,
Nov 16, 2012, 4:21:12 AM11/16/12
to play-fr...@googlegroups.com
Hi 

Thanks :) still getting use to Scala - reading like mad lots of books and watching videos :) 

But thanks :)
Reply all
Reply to author
Forward
0 new messages