mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Support for an HTML builder that can create dynamic HTML
This commit is contained in:
parent
3ccd5eacb4
commit
1363988cd7
5 changed files with 35 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue