class Awestruct::Handlers::TiltHandler

Constants

INTERPOLATION_CHAIN
NON_INTERPOLATION_CHAIN

Public Class Methods

new(site, delegate) click to toggle source
# File lib/awestruct/handlers/tilt_handler.rb, line 49
def initialize(site, delegate)
  super( site, delegate )

  # JP: Not sure if this is the best place, but I can't find a better place
  # We want to use our template for now as we have some special integrations
  if (defined? ::Asciidoctor::Document && ::Tilt.default_mapping['adoc'] == ::Awestruct::Tilt::AsciidoctorTemplate)
    require 'awestruct/handlers/template/asciidoc'
    ::Tilt.register ::Awestruct::Tilt::AsciidoctorTemplate, 'adoc', 'asciidoc', 'ad'
  end
end