Java Play2 - Generic templates?
java, playframework, playframework-2.0, scala, templates
Solution
Use the magic underscore for that:
@(form: Form[_])
This is called an existential type in Scala, it roughly means "there exists a type parameter but I don't care what it is".
Problem
is it possible to create generic templates? Pseudo code: ``` @(myForm: Form[T]) ``` So I can reuse them like this: ``` @inputText( myForm("title"), '_label -> "title" ) ``` - If yes, How do I do it?