Login  Register

Re: How to introduce a new Slim template

Posted by mojavelinux on May 23, 2015; 2:17am
URL: https://discuss.asciidoctor.org/How-to-introduce-a-new-Slim-template-tp3248p3252.html


On Fri, May 22, 2015 at 8:20 AM, torngat [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Thanks a lot!  It worked beautifully and now I can extract my Bootstrap-enabled tabs and accordions into their own components!  

Super!

 is it possible to package Ruby extensions into a library of some sort and refer to that archive via the <requires> configuration instead of explicitly defining every extension?
 
Absolutely. That's precisely what Asciidoctor Diagram does. See https://github.com/asciidoctor/asciidoctor-diagram

There's still an outstanding issue of being able to resolve templates from the LOAD_PATH. That would allow the templates to be packaged inside the gem as well. See https://github.com/asciidoctor/asciidoctor/issues/1352

No need to apologize. You've been asking some really great questions. If you want a concrete place to start with documentation, it's pretty clear we need that "how to use write and load custom templates to custom a converter" guide :) See https://github.com/asciidoctor/asciidoctor/issues/1167

Cheers,