Sha256: 58afefb9f82346132aeca31f87b2770127c3e37e85381c1407c7decda604bbb7
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
module PowerStencil module Engine module Renderers module Erb private def render_erb_template(source, context) logger.debug "Using ERB to render file '#{source}'" ERB.new(File.read(source), trim_mode: '-').result(context) rescue => e logger.debug PowerStencil::Error.report_error(e) raise PowerStencil::Error, "Error rendering '#{source}': '#{e.message}'" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
power_stencil-0.10.0 | lib/power_stencil/engine/renderers/erb.rb |