html2hiccup
html2hiccup copied to clipboard
HTML to Hiccup converter implement in ClojureScript (client-side rendering).
html2hiccup
Convert HTML to Hiccup syntax on-the-fly.
This app is entirely client-side rednering, powered by ClojureScript and hickory.
Development
-
Install needed css/js by bower
$ bower install -
Start the
devtask. In a terminal run:$ boot devThis 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
-
Go to http://localhost:3000 in your browser.
-
If you edit and save a file, the task will recompile the code and reload the browser to show the updated version.
-
If you want to connect to ClojureScript REPL, enter following in Clojure REPL:
(start-repl)
Production
-
Run the
prodtask. In a terminal run:$ boot prod -
The compiled files will be on the
target/directory. This will use advanced compilation and prerender the html.
License
Copyright © 2016 Yen-Chin, Lee <[email protected]>
Distributed under the MIT License.