2017-10-09 07:52:09 +02:00
|
|
|
// loads files for plugins that have been added via CustomWizard::Field
|
|
|
|
<%
|
|
|
|
Discourse.unofficial_plugins.each do |plugin|
|
|
|
|
plugin_name = plugin.metadata.name
|
|
|
|
if require_plugin_assets = CustomWizard::Field.require_assets[plugin_name]
|
|
|
|
plugin.each_globbed_asset do |f, is_dir|
|
2019-01-29 01:30:35 +01:00
|
|
|
next if f.include? "raw.hbs"
|
|
|
|
|
2017-10-09 07:52:09 +02:00
|
|
|
if require_plugin_assets.any? { |dir| f.include?(dir) }
|
|
|
|
if is_dir
|
|
|
|
depend_on(f)
|
|
|
|
else
|
|
|
|
require_asset(f)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
%>
|