Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/green-coder/html-to-hiccup

A html->hiccup conversion function in pure CLJC
https://github.com/green-coder/html-to-hiccup

cljc clojure clojurescript conversion hiccup html

Last synced: about 2 months ago
JSON representation

A html->hiccup conversion function in pure CLJC

Awesome Lists containing this project

README

        

# html-to-hiccup

[![CircleCI](https://circleci.com/gh/green-coder/html-to-hiccup.svg?style=svg)](https://circleci.com/gh/green-coder/html-to-hiccup)

[![Clojars Project](https://img.shields.io/clojars/v/taipei.404/html-to-hiccup.svg)](https://clojars.org/taipei.404/html-to-hiccup)
[![Cljdoc badge](https://cljdoc.org/badge/taipei.404/html-to-hiccup)](https://cljdoc.org/d/taipei.404/html-to-hiccup/CURRENT)
[![Clojars download_badge](https://img.shields.io/clojars/dt/taipei.404/html-to-hiccup?color=opal)](https://clojars.org/taipei.404/html-to-hiccup)

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

## Installation

[![Clojars Project](http://clojars.org/taipei.404/html-to-hiccup/latest-version.svg)](http://clojars.org/taipei.404/html-to-hiccup)

## 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

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

(html->hiccup "

hello, world

")
; => ([: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.