A question related to mach
is there a way to template product creation?
?
hi @viebel
could you elaborate your requirement? Not sure what you mean about template product creation
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"]}}
Is there a better way?
@jonpither basically: how do extensions work in latest mach
Will comment shortly... changing trains.