grenada.exporters
Procedures for writing collections of Things to disk in various formats.
See also grenada.exporters.pretty.
fs-flat
(fs-flat data out-file)
Writes a collection of Things to OUT-FILE.
Read them back like this:
```````clojure
(->> out-file
slurp
grenada.reading/read-string)
```````
See also clj::grenada.exporters.pretty/pprint-fs-flat unless you're working in
pre-1.7.0 Clojure.
fs-hier
(fs-hier data out-dir)
Writes a collection of Things to their appropriate places below OUT-DIR.
Read them back like this:
````````clojure
(->> out-dir
grenada.utils/ordinary-file-seq
(map slurp)
(map grenada.reading/read-string))
````````
jar
(jar things out-dir coords-out)
Inputs: [things out-dir coords-out :- schemas/JarCoordsWithDescr]
Creates a Datadoc JAR containing the THINGS and a pom.xml for this JAR in
OUT-DIR.
The JAR's filename and the pom.xml will be derived from COORDS-OUT.
prn-spit
(prn-spit path x)
Like clj::clojure.core/spit, but uses clj::clojure.core/prn for printing
instead of whatever spit uses.