Class: Asciidoctor::Server::AsciidoctorServer
- Inherits:
-
Asciidoctor::Server::AsciidoctorConverter::Service
- Object
- Asciidoctor::Server::AsciidoctorConverter::Service
- Asciidoctor::Server::AsciidoctorServer
- Defined in:
- lib/asciidoctor-server.rb
Instance Method Summary collapse
Instance Method Details
#convert(convert_req, _unused_call) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/asciidoctor-server.rb', line 9 def convert(convert_req, _unused_call) convert_req.extensions.each { |ext| require(ext) } doc = Asciidoctor.convert( convert_req.input, backend: convert_req.backend, attributes: convert_req.attributes.to_a, standalone: convert_req.standalone ) ::Asciidoctor::Server::AsciidoctorConvertReply.new(output: doc) end |