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.2.6 lib/onebox/view.rb
onebox-1.2.5 lib/onebox/view.rb
onebox-1.2.4 lib/onebox/view.rb
onebox-1.2.3 lib/onebox/view.rb
onebox-1.2.2 lib/onebox/view.rb
onebox-1.2.1 lib/onebox/view.rb
onebox-1.2.0 lib/onebox/view.rb