mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
Support for an HTML builder that can create dynamic HTML
This commit is contained in:
@ -434,6 +434,10 @@ class ApplicationController < ActionController::Base
|
||||
data.merge! DiscoursePluginRegistry.custom_html
|
||||
end
|
||||
|
||||
DiscoursePluginRegistry.html_builders.each do |name, blk|
|
||||
data[name] = blk.call
|
||||
end
|
||||
|
||||
MultiJson.dump(data)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user