discourse/app/assets/javascripts/application.js.erb

22 lines
495 B
Text
Raw Normal View History

2013-02-05 14:16:51 -05:00
<%
require_asset ("./main_include.js")
# Include plugin javascripts/handlebars templates
DiscoursePluginRegistry.javascripts.each { |js| require_asset(js) }
DiscoursePluginRegistry.handlebars.each { |hb| require_asset(hb) }
# 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-05 14:16:51 -05:00
%>