deps-new

Brian Abbott 2020-09-23T02:21:45.011900Z

@briancabbott has joined the channel

fabrao 2020-09-23T18:29:07.014100Z

Is there any doc to understand that render usage? Like ["src/{{nested-dirs}}/foo.clj" (render "foo.clj" data)]. What is {{nested-dirs}} ? I want to create a template that create clojure and clojurescript dirs and I want to see how to do it.

seancorfield 2020-09-23T18:41:24.014700Z

{{foo}} is a placeholder that renders the value of the :foo key in data

seancorfield 2020-09-23T18:41:58.015400Z

The library used is Stencil -- which is similar to handlebars, mustache, and many other templating libraries.

seancorfield 2020-09-23T18:43:04.016500Z

The :nested-dirs key in data corresponds to the path made from the project name, e.g., myname/myproject adjusted from Clojure syntax to filesystem syntax (so - is replaced by _).

seancorfield 2020-09-23T18:44:14.017600Z

So you probably want ["src/clj/{{nested-dirs}}/foo.clj" (render "foo.clj" data)] ["src/cljs/{{nested-dirs}}/bar.cljs" (render "bar.cljs" data] to seed separate clj and cljs trees?

fabrao 2020-09-23T18:46:06.017800Z

ok, I got it

fabrao 2020-09-23T20:08:05.018900Z

@seancorfield Thank you for your help, I could make my own first clj-new template

👍🏻 1