class Stormy::Engines::Erb

Public Instance Methods

render(body,bindings) click to toggle source
# File lib/stormy/engines/erb.rb, line 3
def render(body,bindings)
  engine = ::ERB.new(body, 0, "<>")
  engine.result OpenStruct.new(bindings).instance_eval { binding }
end