mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 10:24:27 +08:00
f4c754b389
This adds plugin.js and plugin_third_party.js files
16 lines
351 B
Plaintext
16 lines
351 B
Plaintext
<%
|
|
# Include plugin javascripts/handlebars templates
|
|
Discourse.unofficial_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
|
|
%>
|