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.8.27 lib/onebox/view.rb
onebox-1.8.26 lib/onebox/view.rb
onebox-1.8.25 lib/onebox/view.rb
onebox-1.8.24 lib/onebox/view.rb
onebox-1.8.23 lib/onebox/view.rb
onebox-1.8.22 lib/onebox/view.rb
onebox-1.8.21 lib/onebox/view.rb
onebox-1.8.20 lib/onebox/view.rb
onebox-1.8.19 lib/onebox/view.rb
onebox-1.8.18 lib/onebox/view.rb
onebox-1.8.17 lib/onebox/view.rb
onebox-1.8.16 lib/onebox/view.rb
onebox-1.8.15 lib/onebox/view.rb
onebox-1.8.14 lib/onebox/view.rb
onebox-1.8.13 lib/onebox/view.rb
onebox-1.8.12 lib/onebox/view.rb
onebox-1.8.11 lib/onebox/view.rb
onebox-1.8.10 lib/onebox/view.rb
onebox-1.8.9 lib/onebox/view.rb
onebox-1.8.8 lib/onebox/view.rb