module Asciidoctor::Converter::BackendInfo
Public Instance Methods
backend_info()
click to toggle source
# File lib/asciidoctor/converter.rb, line 72 def backend_info @backend_info ||= setup_backend_info end
basebackend(value = nil)
click to toggle source
# File lib/asciidoctor/converter.rb, line 104 def basebackend value = nil if value backend_info[:basebackend] = value else backend_info[:basebackend] end end
filetype(value = nil)
click to toggle source
# File lib/asciidoctor/converter.rb, line 96 def filetype value = nil if value backend_info[:filetype] = value else backend_info[:filetype] end end
htmlsyntax(value = nil)
click to toggle source
# File lib/asciidoctor/converter.rb, line 120 def htmlsyntax value = nil if value backend_info[:htmlsyntax] = value else backend_info[:htmlsyntax] end end
outfilesuffix(value = nil)
click to toggle source
# File lib/asciidoctor/converter.rb, line 112 def outfilesuffix value = nil if value backend_info[:outfilesuffix] = value else backend_info[:outfilesuffix] end end
setup_backend_info()
click to toggle source
# File lib/asciidoctor/converter.rb, line 76 def setup_backend_info raise ::ArgumentError, %(Cannot determine backend for converter: #{self.class}) unless @backend base = @backend.sub TrailingDigitsRx, '' if (ext = DEFAULT_EXTENSIONS[base]) type = ext.slice 1, ext.length else # QUESTION should we be forcing the basebackend to html if unknown? base = 'html' ext = '.html' type = 'html' syntax = 'html' end { :basebackend => base, :outfilesuffix => ext, :filetype => type, :htmlsyntax => syntax } end
supports_templates()
click to toggle source
# File lib/asciidoctor/converter.rb, line 128 def supports_templates backend_info[:supports_templates] = true end
supports_templates?()
click to toggle source
# File lib/asciidoctor/converter.rb, line 132 def supports_templates? backend_info[:supports_templates] end