User scripts require to start with a metadata block. How one can setup Leiningen and/or ClojureScript compiler to insert predefined metablock from e.g. a text file?
I have tried following:
; test
;; test 2
(comment test 3)
but it got stripped (probably because {:optimizations :advanced}?).
Please try to explain and describe your answers well, I am a total noob in Clojure and know almost nothing about Leiningen (I managed to get a simple ClojureScript build functional, but that's about it - I wanted to start learning Clojure by writing simple user scripts which I may actually use).
cat metadata compiled.js > metadata.jsstep after compilation. - cfrick