I have problems to write reusable code in scala.
If i have something like
@helper.form(action = routes.Guides.addComment(category,title)) {
Is there a way to replace it with a variable?
pseudo code
@(func : Function)
@helper.form(action = func) {
Edit:
Oh.... now it's kinda obvious. The function itself should return a string , so I guess i can just say something like this
@(func :String)
..
.
return ok (form.render(routes.Guides.test()))
Testing it now