public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
restructure the dispatcher a bit

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2134 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Sun Sep 10 01:36:28 -0700 2006
commit  8a4a68e46fd19c2cbc86fa76c6e74eee01e76ec8
tree    f4397324e8990ce5e0f626047518e7cf138619b5
parent  cf4c79b86baf1c9c35a3ac81c9bb1be0c1d3c679
...
13
14
15
 
 
 
16
 
 
 
 
 
17
18
19
20
21
22
23
24
25
26
27
28
29
30
...
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
 
 
 
 
 
 
 
28
29
30
0
@@ -13,18 +13,18 @@ module Mephisto
0
           return [:single, nil, options.first]
0
         end
0
       end
0
+
0
+ # check for tags
0
+ return [:tags, nil] + path[1..-1] if path.first == site.tag_slug
0
       
0
+ # check for search
0
+ if path.first == site.search_slug
0
+ return (path.size == 1) ? [:search, nil] : [:error, nil]
0
+ end
0
+
0
       dispatch_type = :list
0
       section = nil
0
       returning [] do |result|
0
- # check for tags
0
- return [:tags, nil] + path[1..-1] if path.first == site.tag_slug
0
-
0
- # check for search
0
- if path.first == site.search_slug
0
- return (path.size == 1) ? [:search, nil] : [:error, nil]
0
- end
0
-
0
         # look for the section in the path
0
         while section.nil? && path.any?
0
           section = site.sections.detect { |s| s.path == path.join('/') }

Comments

    No one has commented yet.