Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Haml plugin for Grails, based on JHaml
Groovy Java Gosu JavaScript
branch: master

This branch is 1 commit ahead of raymyers:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.settings
dist
grails-app
lib
scripts
src
test
web-app
.classpath
.gitignore
.project
HamlGrailsPlugin.groovy
LICENSE.txt
README.md
application.properties
plugin.xml

README.md

haml4grails

Grails haml support, using JHaml.

Using

First add the following to the "plugins" section in your grails-app/config/BuildConfig.groovy:

runtime ":haml:0.4.1"

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

groovyPageResourceLoader(com.cadrlife.jhaml.grailsplugin.HamlGroovyPageResourceLoader) {
    baseResource = "file:."
    pluginSettings = org.codehaus.groovy.grails.plugins.GrailsPluginUtils.getPluginBuildSettings()
}

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

Something went wrong with that request. Please try again.