6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/couch/actions/routes.rb', line 6
def routes
say 'Static:'
Dir.glob(File.join(destination_root, "_attachments/*.html")).each do |file|
say ' %s' % attachment_url(file)
end
say 'Lists:'
Dir.glob(File.join(destination_root, "lists/*.js")).each do |list|
Dir.glob(File.join(destination_root, "views/*")).each do |view|
say ' %s' % list_url(list, view)
end
end
say 'Shows:'
Dir.glob(File.join(destination_root, "shows/*.js")).each do |show|
say ' %s' % show_url(show)
say ' %s' % show_url(show, '/:id')
end
end
|