Monday 15 February 2010

haskell - Snap framework root ("/") route not being handed? -



haskell - Snap framework root ("/") route not being handed? -

i have added routes app in next format:

addroutes [ ("/", redirect "/docs/home") , ... more routes ]

but reason root handler beingness ignored altogether. happening here?

it turns out if have index.tpl file snapframework ignore "/" mappings , go straight instead. prepare problem ran:

git rm snaplets/heist/templates/index.tpl

and reloaded templates , route on root started working.

(i not find anywhere in docs decided post here)

edit: i later discovered (with help) problem was adding routes after ran heistinit. if added routes before heistinit there no problem.

haskell routes snap-framework

No comments:

Post a Comment