[hoplon/boot-hoplon "0.3.0"] ;; latest releaseBoot task for building Hoplon web applications.
- Generate HTML page and CLJS namespace from Hoplon
.hlfile. - Prerender application HTML in PhantomJS.
- Generate HTML page according to namespace metadata in regular
.cljsfiles. - Provides extended
ns+form to make namespace declarations work in.cljsfiles the way they work in.clj(that is,:useand:referwork as in Clojure and there is no need to use:require-macros,:use-macros, or:refer-macros--- it just figures out what to do automatically).
Add boot-hoplon to your build.boot dependencies and require the namespace.
Note: the boot-hoplon dependency is only needed at when compiling Hoplon source files, but hoplon itself is needed both when compiling and at runtime. So you should add boot-hoplon with the test scope and hoplon with the (default) compile scope.
(merge-env!
:dependencies '[[hoplon "A.B.C"]
[hoplon/boot-hoplon "X.Y.Z" :scope "test"])
(require '[hoplon.boot-hoplon :refer :all])You can see the options available on the command line:
boot hoplon -hor in the REPL:
boot.user=> (doc hoplon)If you only want to compile Hoplon → ClojureScript+HTML, you can do:
boot hoplonCopyright © 2014 Alan Dipert and Micha Niskin
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.