On my journey through the play framework 2 i ran into two pitfalls in the last days, that are easily solve_d_.
- calling a template from a template with a white space (@navigation_top ()) between the template name and it’s paranthesis results in a message like: BaseScalaTemplate(play.api.templates.HtmlFormat$@3424b1d9) ()
just showing the plain class output, to circumvent this you have to leave out the white space: _@navigation_top()_ 2. templates from the views package can be referenced without the package name in the template like above: _@navigation_top()_ calls the navigation_top template and includes it. But if you add a subpackage and a template within you have to call it with the full package name. So a template navigation_top in views.navigation has to be included with: firstname.lastname@example.org_top()_