class Awestruct::Handlers::AsciidoctorTiltMatcher
Public Instance Methods
match(path)
click to toggle source
Use a lightweight lookup to avoid loading Tilt
templates for non-matching paths. Once we are sure this is a match, then attempt to load the Tilt
template for AsciiDoc files.
# File lib/awestruct/handlers/asciidoctor_handler.rb, line 18 def match(path) extensions = ['ad', 'adoc', 'asciidoc'] if (extensions.include? File.extname(path)[1..-1]) return true end false end