Skip to content

A html->hiccup conversion function in pure CLJC

License

Notifications You must be signed in to change notification settings

green-coder/html-to-hiccup

Repository files navigation

html-to-hiccup

CircleCI

Clojars Project Cljdoc badge Clojars download_badge

A tiny, simple and truly cross-platform (CLJC) html->hiccup function which does not rely on the browser.

Installation

Clojars Project

Feature

  • Truly cross-platform (CLJC), does not rely on the browser.
  • Tiny source code, easy to digest.
  • Highly hackable. Fork me as soon as needed!

Usage

(require '[taipei-404.html :refer [html->hiccup]])

(html->hiccup "<p>hello, world</p>")
; => ([:p "hello, world"])

Contributing

Pull Requests and bug reports are welcome.

You can run the tests in the background by using ./bin/kaocha --watch in a terminal while you are changing the source code in your preferred editor.

License

Copyright © 2022 Vincent Cantin and contributors.

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