PageRenderTime 13ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/priv/sites/zotonicwww/dispatch/dispatch

http://github.com/zotonic/zotonic
#! | 28 lines | 23 code | 5 blank | 0 comment | 0 complexity | ea056cacaa879e309e374be2f08c40b3 MD5 | raw file
 1%% Dispatch rules for mod_zotonic.
 2
 3[
 4    {home,      [],                         resource_page,  [ {template, "home.tpl"}, {id, page_home} ]},
 5    {features,  ["features"],               resource_page,  [ {template, "features.tpl"}, {id, page_features} ]},
 6    {team,      ["zotonic-team"],           resource_page,  [ { template, "zotonic_team.tpl"}, {id, zotonic_team} ]},
 7
 8    {article,   ["blog", id, slug],         resource_page,  [ {template, {cat, "page.tpl"}} ]},
 9
10    {collection,["collection", id],         resource_page,  [ {template, "collection.tpl"} ]},
11    {collection,["collection", id, slug],   resource_page,  [ {template, "collection.tpl"} ]},
12    {manual,    ["manual", id],             resource_page,  [ {template, "manual.tpl"} ]},
13    {manual,    ["manual", id, slug],       resource_page,  [ {template, "manual.tpl"} ]},
14    {category,  ["category", id],           resource_page,  [ {template, "category.tpl"} ]},
15    {category,  ["category", id, slug],     resource_page,  [ {template, "category.tpl"} ]},
16    {documentation,  ["documentation", id],       resource_page,  [ {template, "documentation.tpl"} ]},
17    {documentation,  ["documentation", id, slug], resource_page,  [ {template, "documentation.tpl"} ]},
18    {gallery,   ["gallery", id],            resource_page,  [ {template, "gallery.tpl"} ]},
19    {gallery,   ["gallery", id, slug],      resource_page,  [ {template, "gallery.tpl"} ]},
20    %% Search results
21    {search,   ["search"],      resource_template,  [ {template, "search.tpl"} ]},
22
23    {archives_y,["archives", year],	        resource_template,	[ {template, "archives.tpl"}, {cat, article} ]},
24    {archives_m,["archives", year, month],	resource_template,	[ {template, "archives.tpl"}, {cat, article} ]},
25    
26    %% Generated edocs
27    {edoc,			["edoc", '*'],          resource_static_pages, [ {root, "edoc"} ]}
28].