2013-02-06 03:16:51 +08:00
|
|
|
<%
|
2013-12-31 23:40:45 +08:00
|
|
|
|
2013-04-15 13:07:40 +08:00
|
|
|
require_asset ("./main_include.js")
|
|
|
|
|
2013-12-31 23:40:45 +08:00
|
|
|
# Include plugin javascripts/handlebars templates
|
|
|
|
DiscoursePluginRegistry.javascripts.each { |js| require_asset(js) }
|
|
|
|
DiscoursePluginRegistry.handlebars.each { |hb| require_asset(hb) }
|
|
|
|
|
2014-12-10 04:23:14 +08:00
|
|
|
# Load any glob dependencies
|
|
|
|
DiscoursePluginRegistry.asset_globs.each do |g|
|
|
|
|
root, extension = *g
|
|
|
|
Dir.glob("#{root}/**/*") do |f|
|
|
|
|
if File.directory?(f)
|
|
|
|
depend_on(f)
|
|
|
|
elsif f.to_s.end_with?(".#{extension}")
|
|
|
|
require_asset(f)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
%>
|