Support for an HTML builder that can create dynamic HTML

This commit is contained in:
Robin Ward
2017-04-17 15:47:21 -04:00
parent 3ccd5eacb4
commit 1363988cd7
5 changed files with 35 additions and 1 deletions

View File

@ -316,6 +316,11 @@ module ApplicationHelper
end
end
def build_plugin_html(name)
return "" unless allow_plugins?
DiscoursePluginRegistry.build_html(name) || ""
end
def theme_lookup(name)
lookup = Theme.lookup_field(theme_key, mobile_view? ? :mobile : :desktop, name)
lookup.html_safe if lookup