class Jekyll::Haml::Parser

parse module

Constants

CONFIG

Public Class Methods

compile(content) click to toggle source
# File lib/jekyll/haml/markup/parser.rb, line 13
def self.compile(content)
  template = ::Haml::Engine.new content, CONFIG
  template.render.split("\n").join
end
matches(ext) click to toggle source
# File lib/jekyll/haml/markup/parser.rb, line 9
def self.matches(ext)
  ext =~ /^\.haml$/i
end