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.4.7 lib/onebox/view.rb
onebox-1.4.5 lib/onebox/view.rb
onebox-1.4.4 lib/onebox/view.rb
onebox-1.4.3 lib/onebox/view.rb
onebox-1.4.2 lib/onebox/view.rb
onebox-1.4.1 lib/onebox/view.rb
onebox-1.4.0 lib/onebox/view.rb
onebox-1.3.9 lib/onebox/view.rb
onebox-1.3.8 lib/onebox/view.rb
onebox-1.3.7 lib/onebox/view.rb
onebox-1.3.6 lib/onebox/view.rb
onebox-1.3.5 lib/onebox/view.rb
onebox-1.3.4 lib/onebox/view.rb
onebox-1.3.3 lib/onebox/view.rb
onebox-1.3.2 lib/onebox/view.rb
onebox-1.3.1 lib/onebox/view.rb
onebox-1.3.0 lib/onebox/view.rb
onebox-1.2.9 lib/onebox/view.rb
onebox-1.2.8 lib/onebox/view.rb
onebox-1.2.7 lib/onebox/view.rb