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.48 lib/onebox/view.rb
onebox-1.8.47 lib/onebox/view.rb
onebox-1.8.46 lib/onebox/view.rb
onebox-1.8.45 lib/onebox/view.rb
onebox-1.8.44 lib/onebox/view.rb
onebox-1.8.43 lib/onebox/view.rb
onebox-1.8.42 lib/onebox/view.rb
onebox-1.8.41 lib/onebox/view.rb
onebox-1.8.40 lib/onebox/view.rb
onebox-1.8.39 lib/onebox/view.rb
onebox-1.8.38 lib/onebox/view.rb
onebox-1.8.36 lib/onebox/view.rb
onebox-1.8.35 lib/onebox/view.rb
onebox-1.8.34 lib/onebox/view.rb
onebox-1.8.33 lib/onebox/view.rb
onebox-1.8.32 lib/onebox/view.rb
onebox-1.8.31 lib/onebox/view.rb
onebox-1.8.30 lib/onebox/view.rb
onebox-1.8.29 lib/onebox/view.rb
onebox-1.8.28 lib/onebox/view.rb