# File lib/merb-haml/template.rb, line 12 def self.compile_template(path, name, mod) path = File.expand_path(path) config = (Merb::Config[:haml] || {}).inject({}) do |c, (k, v)| c[k.to_sym] = v c end.merge :filename => path template = ::Haml::Engine.new(File.read(path), config) template.def_method(mod, name) name end