Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (5 sloc) 121 Bytes
require 'haml'
def render_file(filename)
contents = File.read(filename)
Haml::Engine.new(contents).render
end