Sha256: bbb343e3181d0e8c24e15d2a71268926d19b63ebfaeaf35d5c9e169900dd89f0

Contents?: true

Size: 388 Bytes

Versions: 7

Compression:

Stored size: 388 Bytes

Contents

require "jekyll-haml/version"
require "haml"

require "jekyll-haml/tags/haml_partial"
require "jekyll-haml/ext/convertible"

module Jekyll
  class HamlConverter < Converter
    safe true
    priority :low

    def matches(ext)
      ext =~ /haml/i
    end

    def output_ext(ext)
      ".html"
    end

    def convert(content)
      ::Haml::Engine.new(content).render
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-haml-0.1.6 lib/jekyll-haml.rb
jekyll-haml-0.1.5 lib/jekyll-haml.rb
jekyll-haml-0.1.4 lib/jekyll-haml.rb
jekyll-haml-0.1.3 lib/jekyll-haml.rb
jekyll-haml-0.1.2 lib/jekyll-haml.rb
jekyll-haml-0.1.1 lib/jekyll-haml.rb
jekyll-haml-0.0.1 lib/jekyll-haml.rb