javamodel-view-controllerguicesitebricks

Sitebricks HTML files


HTML files in Sitebricks need to have same name as Models and they should exist in WEB-INF or in the same directory as models. Just wondering is there a way to better organise HTML files. For example keeping them in separate folders? Currently if I do that I get an error saying *.html not found.


Solution

  • You can use the @Show annotation to indicate the location of the template file that goes with a page class.