How to provide template-dir to Asciidoctor.render_file

Posted by gamussa on
URL: https://discuss.asciidoctor.org/How-to-provide-template-dir-to-Asciidoctor-render-file-tp488.html

Hi team,

How I can provide template_dir in render_file method?
This snippet doesn't seem to work.

Asciidoctor.render_file(m[0],
                            :in_place => true,
                            :safe =>10,
                            'template-dir' => '~/projects/asciidoctor-backends/haml/deckjs',
                            #:to_file=>'slides.html',
                            :attributes => {
                                'source-highlighter' => 'highlightjs'
})
  }


Please advice...