irrisponsibly massive commit

This commit is contained in:
Brandon Mathis
2011-04-17 22:49:30 -05:00
parent 4db81a9e51
commit e4c2d5790b
119 changed files with 16689 additions and 2442 deletions

24
_plugins/haml.rb Normal file
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