Skip to content
clojure macro which takes a haml file and generate compojure compatible html rendering code
Clojure
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
test/haml_macro
views
.gitignore
README.md
project.clj

README.md

USAGE:

(ns example)
    (:use compojure)
    (:use haml-macro))

(defroutes greeter
  (GET "/hello/:first/:last" (haml "example.haml")))

see views/example.haml

you can change the directory where the templates are searched with:

(set-template-dir "somepath")

haml is compiled to clojure code, you need to reload your module from REPL to see your changes in HAML.

Something went wrong with that request. Please try again.