mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-10 18:15:30 +08:00
16 lines
272 B
Ruby
Vendored
16 lines
272 B
Ruby
Vendored
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
|