Sha256: caf9baedb7474326751b833187e0a7c7d043ebb08b081fe4547d9c8206417ee2

Contents?: true

Size: 272 Bytes

Versions: 47

Compression:

Stored size: 272 Bytes

Contents

module Onebox
  class View < Mustache
    attr_reader :record

    self.template_path = Onebox.options.load_paths.last

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

    def to_html
      render(record)
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
onebox-1.5.19 lib/onebox/view.rb
onebox-1.5.18 lib/onebox/view.rb
onebox-1.5.17 lib/onebox/view.rb
onebox-1.5.16 lib/onebox/view.rb
onebox-1.5.14 lib/onebox/view.rb
onebox-1.5.13 lib/onebox/view.rb
onebox-1.5.12 lib/onebox/view.rb
onebox-1.5.11 lib/onebox/view.rb
onebox-1.5.10 lib/onebox/view.rb
onebox-1.5.9 lib/onebox/view.rb
onebox-1.5.8 lib/onebox/view.rb
onebox-1.5.7 lib/onebox/view.rb
onebox-1.5.6 lib/onebox/view.rb
onebox-1.5.5 lib/onebox/view.rb
onebox-1.5.3 lib/onebox/view.rb
onebox-1.5.2 lib/onebox/view.rb
onebox-1.5.1 lib/onebox/view.rb
onebox-1.5.0 lib/onebox/view.rb
onebox-1.4.9 lib/onebox/view.rb
onebox-1.4.8 lib/onebox/view.rb