Sha256: b9e2c6e1821b513c5fc0314cf3d6ffe7ff48ad59adfb39922268b44af65cca9e

Contents?: true

Size: 179 Bytes

Versions: 93

Compression:

Stored size: 179 Bytes

Contents

# frozen_string_literal: true

require 'erb'

class Module
  def erb_template(subpath, binding_obj)
    ::ERB.new(template.child(subpath).path.read).result(binding_obj)
  end
end

Version data entries

93 entries across 93 versions & 4 rubygems

Version Path
eac_templates-0.7.1 lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.93.0 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_templates-0.7.0 lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.91.0 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_templates-0.5.1 lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.76.0 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.75.2 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.75.1 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.75.0 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.74.1 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.74.0 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.73.0 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.72.0 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.70.1 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.70.0 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.69.1 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.69.0 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.68.0 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.67.1 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
eac_tools-0.67.0 sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb