lib/awestruct/handlers/asciidoctor_handler.rb
def match(path)
        extensions = ['ad', 'adoc', 'asciidoc']
        if (extensions.include? File.extname(path)[1..-1]) 
          return true
        end
        false
      end
# 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.
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.
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 .
def match(path)
        extensions = ['ad', 'adoc', 'asciidoc']
        if (extensions.include? File.extname(path)[1..-1]) 
          return true
        end
        false
      end
def match ( path ) extensions = [ 'ad' , 'adoc' , 'asciidoc' ] if ( extensions . include? File . extname ( path ) [ 1 .. - 1 ] ) return true end false end
Use a lightweight lookup to avoid loading Tilt templates for
non-matching paths.
Use a lightweight lookup to avoid loading Tilt templates for non - matching paths .
path