Support the use of custom templates
mojavelinux opened this issue · 1 comments
mojavelinux commented
Support the use of custom Asciidoctor templates by providing an option in the activation to specify a set of template directories.
activate :asciidoc do |asciidoc|
asciidoc.template_dirs = ['source/_templates']
end
The values of the :template_dirs
option should be resolved to absolute paths. The option should then be passed on to the Asciidoctor processor. If the value is a String, it should first be coerced to an Array.
mojavelinux commented
We could consider making this option implicit based on the presence of a standard directory (e.g., source/_asciidoctor_templates).