Sha256: 23b8f65eca500c978bbc6e656e4b77e51f91a5ad525d3298f4a0c5af3d087882
Contents?: true
Size: 674 Bytes
Versions: 199
Compression:
Stored size: 674 Bytes
Contents
require 'tilt/template' require 'asciidoctor' # AsciiDoc see: http://asciidoc.org/ module Tilt # Asciidoctor implementation for AsciiDoc see: # http://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. class AsciidoctorTemplate < Template self.default_mime_type = 'text/html' def prepare options[:header_footer] = false if options[:header_footer].nil? end def evaluate(scope, locals, &block) @output ||= Asciidoctor.render(data, options, &block) end def allows_script? false end end end
Version data entries
199 entries across 160 versions & 28 rubygems