mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Support for an HTML builder that can create dynamic HTML
This commit is contained in:
@ -238,6 +238,10 @@ class Plugin::Instance
|
||||
DiscoursePluginRegistry.custom_html.merge!(hash)
|
||||
end
|
||||
|
||||
def register_html_builder(name, &block)
|
||||
DiscoursePluginRegistry.register_html_builder(name, &block)
|
||||
end
|
||||
|
||||
def register_asset(file, opts=nil)
|
||||
full_path = File.dirname(path) << "/assets/" << file
|
||||
assets << [full_path, opts]
|
||||
|
Reference in New Issue
Block a user