Sha256: 12220891d9209616dcf21d5dd62e7d3b5dfb099b3af06eccec73d71c1c8a7b68
Contents?: true
Size: 255 Bytes
Versions: 13
Compression:
Stored size: 255 Bytes
Contents
module BootstrapEmail class Erb def self.template(path, locals_hash = {}) namespace = OpenStruct.new(locals_hash) template_html = File.read(path) ERB.new(template_html).result(namespace.instance_eval { binding }) end end end
Version data entries
13 entries across 13 versions & 1 rubygems