lib/steering/rails/template.rb in steering-rails-1.1.0 vs lib/steering/rails/template.rb in steering-rails-1.3.0
- old
+ new
@@ -1,20 +1,21 @@
+require "steering"
require "tilt"
module Steering
module Rails
class Template < Tilt::Template
def self.engine_initialized?
defined? Steering.compile
end
-
+
def initialize_engine
require_template_library "steering"
end
-
+
def prepare
end
-
+
def evaluate(scope, locals, &block)
"Handlebars.template(#{Steering.compile(data)})"
end
end
end
\ No newline at end of file