File and path handling common to this ART CLI library in general.
File and path handling common to this ART CLI library in general.
(->template-path base-path template-file)
Takes a base path and a path to a template-file (ostensibly within the base path) and returns a map indicating the providence :src-path and the intended output path of the template file :dest-rel-path relative to the batch's :output-dir.
Takes a base path and a path to a template-file (ostensibly within the base path) and returns a map indicating the providence :src-path and the intended output path of the template file :dest-rel-path relative to the batch's :output-dir.
(paths->template-paths! paths)
Finds all ART templates either at the given paths (as template files) or within their sub-trees (as a directory). This function is impure, as it directly scans the filesystem subtree of each of the paths.
Finds all ART templates either at the given paths (as template files) or within their sub-trees (as a directory). This function is impure, as it directly scans the filesystem subtree of each of the paths.
Attempting to (over-)write or delete these filenames might have undesirable or catastrophic consequences.
Attempting to (over-)write or delete these filenames might have undesirable or catastrophic consequences.
(relative-path base path)
A seq of path elements (as strings) from base to path.
A seq of path elements (as strings) from base to path.
(template-file-seq path)
seq of all .art template files within the sub-dir hierarchy rooted in path.
seq of all .art template files within the sub-dir hierarchy rooted in path.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close