discourse/lib/onebox/layout_support.rb

19 lines
248 B
Ruby

# frozen_string_literal: true
module Onebox
module LayoutSupport
def self.max_text
500
end
def layout
@layout ||= Layout.new(self.class.onebox_name, data)
end
def to_html
layout.to_html
end
end
end