UX: Support for custom error pages and headers in plugins

This commit is contained in:
Robin Ward
2017-11-14 16:31:44 -05:00
parent 1c56e1c063
commit d07ebf9d4c
6 changed files with 35 additions and 28 deletions

View File

@ -143,7 +143,7 @@ class DiscoursePluginRegistry
def self.build_html(name, ctx = nil)
builders = html_builders[name] || []
builders.map { |b| b.call(ctx) }.join("\n")
builders.map { |b| b.call(ctx) }.join("\n").html_safe
end
def javascripts