i pass a lot of time trying to solve very simple problem render à string or(List) from controller to view using playframework java and Twirl, my code here
in my controller
public Result list(){
//List<String> todo = Arrays.asList("sup1","sup2","sup3");
String nana = "coco";
return ok(index.render(nana));
}
in my view
@(message: String)
@(nana:String)
@main("Welcome to Play") {
@play20.welcome(message, style = "Java")
<h1>@nana</h1>
}
so there are the some configuration for Twirl or automatically ? anyone help me to render data to view and thanks