module Asciidoctor::Converter::Factory

A reusable module for registering and instantiating {Converter Converter} classes used to convert an {AbstractNode} to an output (aka backend) format such as HTML or DocBook.

{Converter Converter} objects are instantiated by passing a String backend name and, optionally, an options Hash to the {Factory#create} method. The backend can be thought of as an intent to convert a document to a specified format.

Applications interact with the factory either through the global, static registry mixed into the {Converter Converter} module or a concrete class that includes this module such as {CustomFactory}. For example:

Examples

converter = Asciidoctor::Converter.create 'html5', htmlsyntax: 'xml'