class Tilt::AsciidoctorTemplate
Asciidoctor implementation for AsciiDoc see: asciidoctor.github.com/
Asciidoctor is an open source, pure-Ruby processor for converting AsciiDoc documents or strings into HTML 5, DocBook 4.5 and other formats.
Public Class Methods
engine_initialized?()
click to toggle source
# File lib/tilt/asciidoc.rb, line 14 def self.engine_initialized? defined? ::Asciidoctor::Document end
Public Instance Methods
allows_script?()
click to toggle source
# File lib/tilt/asciidoc.rb, line 30 def allows_script? false end
evaluate(scope, locals, &block)
click to toggle source
# File lib/tilt/asciidoc.rb, line 26 def evaluate(scope, locals, &block) @output ||= Asciidoctor.render(data, options, &block) end
initialize_engine()
click to toggle source
# File lib/tilt/asciidoc.rb, line 18 def initialize_engine require_template_library 'asciidoctor' end
prepare()
click to toggle source
# File lib/tilt/asciidoc.rb, line 22 def prepare options[:header_footer] = false if options[:header_footer].nil? end