Asciidoctor Backend question - add a cover.html.slim
Is there a way to tell to asciidoctor that a specific template file of the backend (xxx.html.slim) must be used for the rendering (asciidoc to HTML) ?
My idea is the following. I would like to add a HTML slim template under backends/slim/html5/cover.html.slim but as the cover does not correspond to a block/macro managed by asciidoctor (document, section, image, paragraph, video, ...) I don't know until now If I can pass an attribute to tell to asciidoctor which template page it should use for the rendering. The alternative is of course to create a new backend but until now it will just contain a document.html.slim (= cover template)
Re: Asciidoctor Backend question - add a cover.html.slim
The "correct" thing to do here is to create a new backend since you are, in affect, creating a new type of output.
This becomes a lot simpler in Asciidoctor 1.5.0 since we now have a TemplateConverter that can be used to hide the plumbing of setting up a template-based backend for a case like this one. I encourage you to have a look at the new API and see if it fits your needs.