Changed _plugins folder to plugins and updated rake tasks accordingly

This commit is contained in:
Brandon Mathis
2011-07-11 11:17:15 -04:00
parent d4139e394e
commit ee7b9dd958
13 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1,24 @@
module Jekyll
require 'haml'
class HamlConverter < Converter
safe true
priority :low
def matches(ext)
ext =~ /haml/i
end
def output_ext(ext)
".html"
end
def convert(content)
begin
engine = Haml::Engine.new(content)
engine.render
rescue StandardError => e
puts "!!! HAML Error: " + e.message
end
end
end
end