A Leiningen plugin to do many wonderful things with jank.
- Execute
lein installin thelein-jank's root.. - Create a leiningen project:
lein new my-app - Update the name of the source file
src/my_app/core.cljto be a jank file i.e.src/my_app/core.jank - Add a
-mainfunction to thecore.jank
(defn -main [& args]
(println "Hello, world!")
(println "Args: " args))- Put
[org.jank-lang/lein-jank "0.0.1-SNAPSHOT"]into the:pluginsvector of your project.clj. - Set the
:mainkey in the project.clj tomy-app.core
(defproject my-app "v0.0.1"
...
:plugins [[org.jank-lang/lein-jank "0.0.1-SNAPSHOT"]]
:main my-app.core
...)- Run the project:
lein jank run <args>
Make sure you have jank executable on your path.
This plugin delegates classpath generation to leiningen. Execute lein classpath to find your project's classpath.
Run the following to know more
$ lein jank help