The top-level logic for the clj-new create/generate entry points.
The top-level logic for the clj-new create/generate entry points.
(create {:keys [args name template]})
Exposed to clj-new command-line with simpler signature.
Exposed to clj-new command-line with simpler signature.
(create* template-name project-name args)
Given a template name, a project name and list of template arguments, perform sanity checking on the project name and, if it's sane, then generate the project from the template.
Given a template name, a project name and list of template arguments, perform sanity checking on the project name and, if it's sane, then generate the project from the template.
(generate-code {:keys [args generate]})
Exposed to clj new task with simpler signature.
Exposed to clj new task with simpler signature.
(generate-code* template-name prefix generations args)
Given an optional template name, an optional path prefix, a list of things to generate (type, type=name), and an optional set of arguments for the generator, resolve the template (if provided), and then resolve and apply each specified generator.
Given an optional template name, an optional path prefix, a list of things to generate (type, type=name), and an optional set of arguments for the generator, resolve the template (if provided), and then resolve and apply each specified generator.
(resolve-and-load deps resolve-args)
Given a deps map and an extra-deps map, resolve the dependencies, figure out the classpath, and load everything into our (now dynamic) classloader.
Given a deps map and an extra-deps map, resolve the dependencies, figure out the classpath, and load everything into our (now dynamic) classloader.
(resolve-remote-template template-name)
Given a template name, attempt to resolve it as a clj template first, then as a Boot template, then as a Leiningen template. Return the type of template we found and the final, derived template-name.
Given a template name, attempt to resolve it as a clj template first, then as a Boot template, then as a Leiningen template. Return the type of template we found and the final, derived template-name.
(resolve-template template-name)
Given a template name, resolve it to a symbol (or exit if not possible).
Given a template name, resolve it to a symbol (or exit if not possible).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close