Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.01 KB

README.md

File metadata and controls

31 lines (18 loc) · 1.01 KB

haml4grails

Grails haml support, using JHaml.

Using

First install the plugin...

grails install plugin path/to/grails-haml-0.1.zip

Then add the following to your grails-app/config/spring/resources.groovy:

groovyPageResourceLoader(com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader) {
  baseResource = new org.springframework.core.io.FileSystemResource(".")
}

You can now have ".haml" files in your views directory. They will be converted to GSPs on request (if using grails run-app) or on war creation.

Authors

Ray Myers, with very special thanks to the implementers of the original Haml for Ruby, Hampton Catlin and Nathan Weizenbaum.

This plugin is licensed under the GNU GPL version 3.0, with the exception of the included libraries, which are licensed as follows.

JHaml: GNU GPL 3.0

Google Guava: Apache 2.0

Apache Commons Lang: Apache 2.0