1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/wizard-plugin.js.erb

22 Zeilen
543 B
Text

// discourse-skip-module
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 |path, is_dir|
next if path.include? "raw.hbs"
if require_plugin_assets.any? { |dir| path.include?(dir) }
2017-10-09 07:52:09 +02:00
if is_dir
depend_on(path)
2017-10-09 07:52:09 +02:00
else
require_asset(path)
2017-10-09 07:52:09 +02:00
end
end
end
end
end
%>