hiccup-foundation

Zurb Foundation in Hiccup


License
EPL-1.0

Documentation

hiccup-foundation

Zurb Foundation in Hiccup. This is basically a replica of hiccup-bootstrap, except with my favorite CSS framework. Credit to weavejester.

Installation

[hiccup-foundation "0.1.0"]

Usage

Add the wrap-foundation-resources middleware to your handler to automatically add routes for the various Foundation CSS, image and JS files:

(:require [hiccup-foundation.middlware :refer :all])

(def app
  (wrap-foundation-resources handler))

Then in your Hiccup template, add in include-foundation in the page header:

(:require [hiccup.core :refer :all]
          [hiccup.page :refer :all]
          [hiccup-foundation.page :refer all])

(defn page []
  (html5
    [:head
      [:title "Foundation Example"]
      (include-foundation)]
    [:body
      [:h1 "Foundation Example"]]))

License

Copyright © 2012 Michael Drogalis

Distributed under the Eclipse Public License, the same as Clojure.