Login  Register

Re: Asciidoctor backends

Posted by aalmiray on Mar 08, 2013; 9:36am
URL: https://discuss.asciidoctor.org/Asciidoctor-backends-tp16p30.html

Ruby n00b here... wouldn't it be possible to query/install/load gems dynamically? Say for example we configure the gradle plugin in such a way a developer that would like to use additional backends and/or asciidoctor version just has to specify the following

    asciidoctor {
        asciidoctorVersion = '0.2.0'
        backend = 'angularjs'
    }

With these instructions the plugin will check if asciidoctor-0.2.0 gem is installed, if not, then will fetch and install required files. Next it will check for the angularjs backend, if not available then fetch & install. Finally loads asciidoctor, configures the chosen backend and goes to town with asciidoc sources.

I'd suspect gems can be queried/fetched/installed using a standard Ruby API, can't they?