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.
Support the use of custom Asciidoctor templates by providing an option in the activation to specify a set of template directories.
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.