Liking cljdoc? Tell your friends :D

s-html Build Status Clojars Project

A library of composable, S-expression-based HTML generators.

Usage

API docs. Use provided functions to compose HTML documents:

(require '[s-html.tags.html :refer [body div head html h1 h2 h3 h4 h5 h6 title]])

(def container (partial div {:class :container}))

(defn hello-world-div [tag]
  (container (tag "Hello world!")))

(defn hello-world [title-str]
  (html (head (title title-str)
        (body (map hello-world-div
              [h1 h2 h3 h4 h5 h6])))))

(require '[s-html.print :refer [html->str]])

(html->str (hello-world "Hi!"))

License

Copyright © 2015-2016 Kajetan Rzepecki kajtek@idorobots.org

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close