Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
assets
src/vivid
test/vivid/art/boot
LICENSE.txt
README.md
boot.properties
build.boot

README.md

Ash Ra Template Boot Task

Boot task for rendering Ash Ra Template .art templates.

Clojars Project

Usage

The art Boot task will render all template files bearing the .art filename extension. The art filename extension is stripped from the rendered output filenames. For example, index.html.art is rendered to the file index.html.

(set-env! :dependencies '[[vivid/boot-art "0.4.0"]])

(require '[vivid.art.boot :refer [art]])

(deftask pipeline []
  (comp ...
        (art :bindings     VAL
             :delimiters   VAL
             :dependencies VAL
             :files        FILES)
        ...))

Command-line usage:

  $ boot [earlier tasks ..] -- art [options] -- [later tasks ..]

and options:

Render Ash Ra .art templates.

Templates are rendered to files whose filenames are stripped of the .art suffix.

Options:
  -h, --help              Print this help info.
  -b, --bindings VAL      VAL sets bindings made available to templates for symbol resolution.
  -d, --delimiters VAL    VAL sets template delimiters (EDN or a Var).
      --dependencies VAL  VAL sets clojure deps map (EDN or a Var).
  -f, --files FILES       FILES sets a vector of .art template files to render. If not present, all files will be rendered.

Development

Run the tests with

boot test

License

© Copyright Vivid Inc. EPL licensed.

You can’t perform that action at this time.