I do not like the @(form: Form[_]) approach, as it gives out type safety from the window.
When passed to ok(form.render(userform)) you will not get any help from the compiler when you @form("lastNme") in your template, but you will get a runtime error if you did not catch it during testing.
What I am doing is providing an interface (or feature in game 2 scala) for general forms (for example, registering for membership and registering a conference, league statistics and team statistics, etc.); thus, typos with fat fingers, etc., are detected during compilation.
Yes, the more templates to solve, but based on the dynamic language side of the fence, the less I have to deal with runtime errors, the better ...
virtualeyes
source share