Login  Register

Re: Asciidoctor backends

Posted by LightGuardjp on Mar 08, 2013; 5:11pm
URL: https://discuss.asciidoctor.org/Asciidoctor-backends-tp16p31.html

The problem isn't getting the gem loaded, it's actually how asciidoctor uses backends. It expects a location to be passed where it can find the backend and templates. We could change this, but as it currently stands today, that is the problem, at least as I see it, could be wrong.


On Fri, Mar 8, 2013 at 2:36 AM, aalmiray [via Asciidoctor :: Discussion] <[hidden email]> wrote:
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?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Asciidoctor-backends-tp16p30.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Jason Porter
http://en.gravatar.com/lightguardjp