Wednesday, May 5, 2010

access templates belonging to plugins - file not found exception

My current web project is split up into several parts. The best way to achieve this was utilizing the plugin mechanism of grails. Unfortunately grails (1.2 SNAPSHOT) is not able to find templates that are part of a plugin. I am quite sure I installed the plugins properly, as controllers, etc. are found.

Apparently, this is a known bug and lucky for me there is also a work-around presented:

render(template:"/bla/foo", plugin:"name-of-plugin", ...) and for gsp <g:render template="/bla/foo" plugin="name-of-plugin" ... />


Works perfectly as soon as you find out what the correct sPelLinG of your plugin is. In the end I used "grails list-plugins" to answer that question.

No comments:

Post a Comment