require 'asciidoctor' # (1)
puts Asciidoctor.convert_file('sample.adoc', :header_footer => true) # (2)
-
Imports the library
-
Reads, parses and renders the file
Related information
This is aside text.
It is used to present information related to the main content.
Firefox |
Web Browser |
Ruby |
Programming Language |
TorqueBox |
Application Server |
class BlockProcessor class DiagramBlock class DitaaBlock class PlantUmlBlock BlockProcessor <|-- DiagramBlock DiagramBlock <|-- DitaaBlock DiagramBlock <|-- PlantUmlBlock
Whatever