Skip to content

Instantly share code, notes, and snippets.

@dotemacs
Created November 24, 2009 14:01
Show Gist options
  • Save dotemacs/241879 to your computer and use it in GitHub Desktop.
Save dotemacs/241879 to your computer and use it in GitHub Desktop.
--- runner.rb.orig 2009-11-23 14:14:58.000000000 +0000
+++ runner.rb 2009-11-24 13:47:17.000000000 +0000
@@ -1,7 +1,6 @@
require 'rubygems'
require 'ruby_parser'
require 'erb'
-require 'haml'
require 'yaml'
module RailsBestPractices
@@ -31,6 +30,7 @@
content = ERB.new(content).src
end
if filename =~ /.*haml$/
+ require 'haml'
content = Haml::Engine.new(content).precompiled
end
node = parse(filename, content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment