Sha256: 60310a7aab38f3d68cf47d9da26630802f4bc981dee2dec6314506369408c37d

Contents?: true

Size: 324 Bytes

Versions: 144

Compression:

Stored size: 324 Bytes

Contents

require_relative "template_support"

module Onebox
  class View < Mustache
    include TemplateSupport

    attr_reader :record

    def initialize(name, record)
      @record = record
      self.template_name = name
      self.template_path = load_paths.last
    end

    def to_html
      render(record)
    end
  end
end

Version data entries

144 entries across 144 versions & 1 rubygems

Version Path
onebox-1.6.7 lib/onebox/view.rb
onebox-1.6.6 lib/onebox/view.rb
onebox-1.6.5 lib/onebox/view.rb
onebox-1.6.4 lib/onebox/view.rb
onebox-1.6.3 lib/onebox/view.rb
onebox-1.6.2 lib/onebox/view.rb
onebox-1.6.1 lib/onebox/view.rb
onebox-1.6.0 lib/onebox/view.rb
onebox-1.5.65 lib/onebox/view.rb
onebox-1.5.64 lib/onebox/view.rb
onebox-1.5.63 lib/onebox/view.rb
onebox-1.5.62 lib/onebox/view.rb
onebox-1.5.61 lib/onebox/view.rb
onebox-1.5.60 lib/onebox/view.rb
onebox-1.5.50 lib/onebox/view.rb
onebox-1.5.49 lib/onebox/view.rb
onebox-1.5.48 lib/onebox/view.rb
onebox-1.5.47 lib/onebox/view.rb
onebox-1.5.45 lib/onebox/view.rb
onebox-1.5.44 lib/onebox/view.rb