Fork me on GitHub
#juxt
<
2017-04-25
>
Yehonathan Sharvit08:04:09

A question related to mach

Yehonathan Sharvit08:04:23

is there a way to template product creation?

jonpither13:04:47

could you elaborate your requirement? Not sure what you mean about template product creation

Yehonathan Sharvit13:04:47

I have two products a.html and b.html created with the same command to be executed on a.adoc and b.adoc. For the moment I am duplicating the entries in Machfile.edn

presentation.html {product "presentation.html"
                    depends [asciidoctor-deck.js deck.js]
                    novelty (mach.core/modified-since product "presentation.adoc")
                    update! #$ ["bundle install && bundle exec asciidoctor -T templates/haml presentation.adoc"]}
polymorphism.html {product "polymorphism.html"
                    depends [asciidoctor-deck.js deck.js]
                    novelty (mach.core/modified-since product "polymorphism.adoc")
                    update! #$ ["bundle install && bundle exec asciidoctor -T templates/haml polymorphism.adoc"]}}

Yehonathan Sharvit13:04:30

Is there a better way?

dominicm14:04:43

@jonpither basically: how do extensions work in latest mach

jonpither16:04:58

Will comment shortly... changing trains.