Sha256: 96f2ead1259772b97bf46b44e15535b3d02c2923d3bde8a2607f92fc9716ab66

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

module PartiallyUseful
  module PartialRenderer
    def render(context, options, block)
      msg = "rendering '#{options[:partial]}' with locals '#{(options[:locals] || {}).keys}'"
      "<!-- start #{msg}-->\n#{super(context, options, block)}\n<!-- end #{msg}-->\n".html_safe
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
partially_useful-0.0.3 lib/partially_useful/partial_renderer.rb
partially_useful-0.0.2 lib/partially_useful/partial_renderer.rb
partially_useful-0.0.1 lib/partially_useful/partial_renderer.rb