This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
To try it out, just grab the plugin:
grails install-plugin hamlThen add this bean definition to your grails-app/conf/spring/resources.groovy.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beans = { // ... | |
groovyPageResourceLoader(com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader) { | |
baseResource = new org.springframework.core.io.FileSystemResource(".") | |
} | |
} |
Now, you have the option of writing views (with the .haml extension) that will be automatically rendered to GSPs.
Learn more in the Haml tutorial.
Official Grails Plugin Page