lib/malt/engines/erb.rb in malt-0.1.1 vs lib/malt/engines/erb.rb in malt-0.2.0

- old
+ new

@@ -26,10 +26,12 @@ # Returns a String. def render(params={}, &yld) text = params[:text] file = params[:file] data = params[:data] + data = make_binding(data, &yld) + if settings[:precompile] == false intermediate(params).result(data) else ruby = compile(params) eval(ruby, data, file)