Sha256: 0a6f0896fbac2c527a394a9227878d7850d19791d22ec0bddb64824ad4c80a5c

Contents?: true

Size: 264 Bytes

Versions: 7

Compression:

Stored size: 264 Bytes

Contents

require 'tilt'

module Massimo
  class View < Resource
    unprocessable
    
    def render(locals = {}, &block)
      template = Tilt.new(source_path.basename.to_s) { content }
      template.render(Massimo.site.template_scope, locals, &block)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
massimo-0.5.6 lib/massimo/view.rb
massimo-0.5.5 lib/massimo/view.rb
massimo-0.5.4 lib/massimo/view.rb
massimo-0.5.3 lib/massimo/view.rb
massimo-0.5.2 lib/massimo/view.rb
massimo-0.5.1 lib/massimo/view.rb
massimo-0.5.0 lib/massimo/view.rb