Sha256: c0a3e195e6d086fde515ff9ec701e6c7c2f4125100f55b4cbcd615bcf84b4349

Contents?: true

Size: 340 Bytes

Versions: 5

Compression:

Stored size: 340 Bytes

Contents

require 'tilt'

module Massimo
  class View < Resource
    unprocessable
    
    def render(locals = {}, &block)
      template_options = Massimo.config.options_for(extension[1..-1])
      template         = Tilt.new(source_path.to_s, 1, template_options) { content }
      template.render(template_scope, locals, &block)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
massimo-0.10.3 lib/massimo/view.rb
massimo-0.10.2 lib/massimo/view.rb
massimo-0.10.1 lib/massimo/view.rb
massimo-0.10.0 lib/massimo/view.rb
massimo-0.9.0 lib/massimo/view.rb