Don't include all html builders on client and server side
This commit is contained in:
parent
4c306f9f49
commit
2e4b3e9b06
|
@ -448,7 +448,9 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
DiscoursePluginRegistry.html_builders.each do |name, blk|
|
||||
data[name] = blk.call(self)
|
||||
if name.start_with?("client:")
|
||||
data[name.sub(/^client:/, '')] = blk.call(self)
|
||||
end
|
||||
end
|
||||
|
||||
MultiJson.dump(data)
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
<%= yield :head %>
|
||||
|
||||
<%= raw build_plugin_html 'before-head-close' %>
|
||||
<%= raw build_plugin_html 'server:before-head-close' %>
|
||||
</head>
|
||||
|
||||
<body class="<%= body_classes %>">
|
||||
|
@ -87,6 +87,7 @@
|
|||
|
||||
<%- unless customization_disabled? || loading_admin? %>
|
||||
<%= theme_lookup("header") %>
|
||||
<%= raw build_plugin_html 'server:header' %>
|
||||
<%- end %>
|
||||
|
||||
<section id='main'>
|
||||
|
@ -124,6 +125,6 @@
|
|||
<%- unless customization_disabled? %>
|
||||
<%= raw theme_lookup("body_tag") %>
|
||||
<%- end %>
|
||||
<%= raw build_plugin_html 'before-body-close' %>
|
||||
<%= raw build_plugin_html 'server:before-body-close' %>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue