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

@ -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