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.89 lib/onebox/view.rb
onebox-1.8.88 lib/onebox/view.rb
onebox-1.8.87 lib/onebox/view.rb
onebox-1.8.86 lib/onebox/view.rb
onebox-1.8.85 lib/onebox/view.rb
onebox-1.8.84 lib/onebox/view.rb
onebox-1.8.83 lib/onebox/view.rb
onebox-1.8.82 lib/onebox/view.rb
onebox-1.8.81 lib/onebox/view.rb
onebox-1.8.80 lib/onebox/view.rb
onebox-1.8.79 lib/onebox/view.rb
onebox-1.8.78 lib/onebox/view.rb
onebox-1.8.77 lib/onebox/view.rb
onebox-1.8.76 lib/onebox/view.rb
onebox-1.8.75 lib/onebox/view.rb
onebox-1.8.74 lib/onebox/view.rb
onebox-1.8.73 lib/onebox/view.rb
onebox-1.8.72 lib/onebox/view.rb
onebox-1.8.71 lib/onebox/view.rb
onebox-1.8.70 lib/onebox/view.rb