mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 00:02:05 -05:00
e76449d800
asset pipeline to find new and deleted files with deleting the `tmp` folder and restarting the server.
21 lines
495 B
Text
21 lines
495 B
Text
<%
|
|
|
|
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
|
|
|
|
%>
|