Sha256: 213141fa8eb45504ea8a930f5f88f06b3a1348489b5c8730686e85fb9c46fa6a

Contents?: true

Size: 199 Bytes

Versions: 1

Compression:

Stored size: 199 Bytes

Contents

class Stormy::Engines::Erb  < Stormy::Engines::Base

  def render(body,bindings)
    engine = ::ERB.new(body, 0, "<>")
    engine.result OpenStruct.new(bindings).instance_eval { binding }
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stormy-0.0.1 lib/stormy/engines/erb.rb