Module Yapra::Plugin::ErbApplier
In: lib/yapra/plugin/erb_applier.rb

Methods

Public Instance methods

[Source]

    # File lib/yapra/plugin/erb_applier.rb, line 6
 6:   def apply_template template, apply_binding=binding
 7:     if template.index('file://') == 0
 8:       path = URI.parse(template).path
 9:       open(path) do |io|
10:         template = io.read
11:       end
12:     end
13:     ERB.new(template, nil, '-').result(apply_binding)
14:   end

[Validate]