mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-25 00:29:30 -05:00
17 lines
394 B
Text
17 lines
394 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) }
|
|
|
|
DiscoursePluginRegistry.each_globbed_asset do |f, ext|
|
|
if File.directory?(f)
|
|
depend_on(f)
|
|
elsif f.to_s.end_with?(".#{ext}")
|
|
require_asset(f)
|
|
end
|
|
end
|
|
|
|
%>
|