lib/tilt/haml.rb in tilt-1.4.1 vs lib/tilt/haml.rb in tilt-2.0.0.beta1
- old
+ new
@@ -1,19 +1,12 @@
require 'tilt/template'
+require 'haml'
module Tilt
# Haml template implementation. See:
# http://haml.hamptoncatlin.com/
class HamlTemplate < Template
self.default_mime_type = 'text/html'
-
- def self.engine_initialized?
- defined? ::Haml::Engine
- end
-
- def initialize_engine
- require_template_library 'haml'
- end
def prepare
options = @options.merge(:filename => eval_file, :line => line)
@engine = ::Haml::Engine.new(data, options)
end