lib/onebox/view.rb in onebox-1.5.19 vs lib/onebox/view.rb in onebox-1.5.20
- old
+ new
@@ -1,13 +1,16 @@
+require_relative "template_support"
+
module Onebox
class View < Mustache
+ include TemplateSupport
+
attr_reader :record
- self.template_path = Onebox.options.load_paths.last
-
def initialize(name, record)
@record = record
self.template_name = name
+ self.template_path = load_paths.last
end
def to_html
render(record)
end