Class: Jekyll::Haml::Parser
- Inherits:
-
Object
- Object
- Jekyll::Haml::Parser
- Defined in:
- lib/jekyll/haml/markup/parser.rb
Overview
parse module
Constant Summary collapse
- CONFIG =
{ attr_wrapper: '"', escape_attrs: false }.freeze
Class Method Summary collapse
Class Method Details
.compile(content) ⇒ Object
13 14 15 16 |
# 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) ⇒ Object
9 10 11 |
# File 'lib/jekyll/haml/markup/parser.rb', line 9 def self.matches(ext) ext =~ /^\.haml$/i end |