Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: Grails-FreeMarker 0.3
-
Fix Version/s: None
-
Labels:None
Description
Hi.
Please, see this post:
I have suggested this ugly (and hardcoded) workaround:
// resources.groovy
import grails.util.BuildSettingsHolder
// Place your Spring DSL code here
beans = {
boolean developmentMode = !application.warDeployed
freemarkerConfig(org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer) {
if(developmentMode) {
templateLoaderPaths=["file:$
/grails-app/views".toString(), 'file:/home/daniel/.grails/1.3.7/projects/main-app/plugins/child-app-0.1/grails-app/views']
} else
}
}
But i think it can be done correctly in FreeMarker plugin.
Thanks.