discourse/app/assets/javascripts/plugin.js.erb
Sam f4c754b389 FEATURE: split JavaScript application bundle, so plugins live in own file
This adds plugin.js and plugin_third_party.js files
2016-11-15 11:43:13 +11:00

17 lines
350 B
Plaintext

<%
# Include plugin javascripts/handlebars templates
Discourse.official_plugins.each do |plugin|
plugin.javascript_includes.each { |js| require_asset(js) }
plugin.handlebars_includes.each { |hb| require_asset(hb) }
plugin.each_globbed_asset do |f, is_dir|
if is_dir
depend_on(f)
else
require_asset(f)
end
end
end
%>