Sha256: 74cbe1d84ee02799129fa861272284a302c16b81147e73a7223f0cc0288b1e05

Contents?: true

Size: 471 Bytes

Versions: 68

Compression:

Stored size: 471 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), nil, '-').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

68 entries across 68 versions & 1 rubygems

Version Path
power_stencil-0.9.8 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.9.7 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.9.6 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.9.5 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.9.4 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.9.3 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.9.2 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.9.1 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.9.0 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.8.14 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.8.13 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.8.12 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.8.11 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.8.10 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.8.9 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.8.8 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.8.7 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.8.6 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.8.5 lib/power_stencil/engine/renderers/erb.rb
power_stencil-0.8.4 lib/power_stencil/engine/renderers/erb.rb