You can clone with
class HamlConverter < Converter
return if @setup
@setup = true
STDERR.puts 'do `gem install haml`'
raise FatalException.new("Missing dependency: haml")
ext =~ /haml/i
engine = Haml::Engine.new(content)
<!-- _layouts/home.haml -->
title: Home Page
%h1 Hello World?
will this work with github pages?
I don't think so. There is an open ticket here: https://github.com/mojombo/jekyll/issues/53
For now, you'll have to pre-process your Haml before sending it to Github pages. This is not too bad if you can set up your development environment to automatically compile the HAML whenever you save.
How are you pre-processing the HAML?
see line 24 onwards
@bcardarella Since haml doesn't have a --watch option like SASS, you could use also try using the unix watch command. Maybe something like this: watch haml *.haml (Sorry I haven't tried it and I don't have any of my code in front of me right now)
watch haml *.haml
Does home.haml actually work? I can't seem to get my layout to generate correctly with haml?
This plguin isn't converting my haml layouts to html
But it works for the content pages, any ideas?
@topher6345 what's the suffix of your layout files? Might wanna make them .html to make the plugin pick them up.
I have an error with new version of haml gem.
http://blog.haml.info/post/42998475354/haml-4-0-has-been-released says that markup filters have been moved to separate gem 'haml-contrib'