Skip to content

Instantly share code, notes, and snippets.

@czottmann
Created October 13, 2009 20:38
Show Gist options
  • Save czottmann/209540 to your computer and use it in GitHub Desktop.
Save czottmann/209540 to your computer and use it in GitHub Desktop.
"Hamlize" Textmate command for quick-checking HAML syntax. Pretty handy once you've finetuned it a bit. http://bit.ly/h4hYd
#!/usr/local/bin/ruby
require "rubygems"
require "haml"
puts Haml::Engine.new( STDIN.read.gsub( /\t/, " " ), { :escape_html => true } ).render
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment