https://github.com/coldnew/html2hiccup
HTML to Hiccup converter implement in ClojureScript (client-side rendering).
https://github.com/coldnew/html2hiccup
clojuresctip hiccup
Last synced: 10 months ago
JSON representation
HTML to Hiccup converter implement in ClojureScript (client-side rendering).
- Host: GitHub
- URL: https://github.com/coldnew/html2hiccup
- Owner: coldnew
- License: mit
- Created: 2016-02-03T16:15:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-08T02:49:10.000Z (about 10 years ago)
- Last Synced: 2025-04-12T15:05:44.620Z (about 1 year ago)
- Topics: clojuresctip, hiccup
- Language: Clojure
- Homepage: https://coldnew.github.io/html2hiccup/
- Size: 3.76 MB
- Stars: 19
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# html2hiccup
[](https://circleci.com/gh/coldnew/html2hiccup/tree/master)
[](https://jarkeeper.com/coldnew/html2hiccup)
[](https://raw.githubusercontent.com/coldnew/html2hiccup/master/LICENSE)
Convert HTML to Hiccup syntax on-the-fly.
This app is entirely client-side rednering, powered by [ClojureScript](https://github.com/clojure/clojurescript) and [hickory](https://github.com/davidsantiago/hickory).
[Online DEMO](https://coldnew.github.io/html2hiccup/).
### Development
1. Install needed css/js by bower
```bash
$ bower install
```
2. Start the `dev` task. In a terminal run:
```bash
$ boot dev
```
This will give you a development setup with:
- auto compilation on file changes
- audible warning for compilation success or failures
- auto reload the html page on changes
- Clojurescript REPL
3. Go to http://localhost:3000 in your browser.
4. If you edit and save a file, the task will recompile the code and reload the
browser to show the updated version.
5. If you want to connect to ClojureScript REPL, enter following in Clojure REPL:
```clojure
(start-repl)
```
### Production
1. Run the `prod` task. In a terminal run:
```bash
$ boot prod
```
2. The compiled files will be on the `target/` directory. This will use
advanced compilation and prerender the html.
## License
Copyright © 2016 Yen-Chin, Lee <>
Distributed under the [MIT License](http://opensource.org/licenses/MIT).