Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
clojure macro which takes a haml file and generate compojure compatible html rendering code
Clojure
tree: 0bf35cfa1d

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.