lib/slim/engine.rb in slim-0.2.0 vs lib/slim/engine.rb in slim-0.3.0
- old
+ new
@@ -1,18 +1,19 @@
module Slim
class Engine
include Compiler
attr_reader :compiled
+ attr_reader :optimized
# @param template The .slim template to convert
# @return [Slim::Engine] instance of engine
def initialize(template)
@template = template
compile
end
def render(scope = Object.new, locals = {})
- scope.instance_eval(compiled)
+ scope.instance_eval(optimized)
end
end
end