I can't figure out the routing strangeness in Snap 0.9 (and, most likely, other versions)
I understand "/" is a catch everything pattern unless I put ifTop function inside the handler, right? So, with ("/", blah) route, any URL should be handled by the blah handler, correct?
Playing with the default app generated by snap init, I can't get snap to render anything but index.tpl for the root request.
Given root ("/", blah) and handler
blah :: Handler App App ()
blah = render "blah"
it renders blah template for any URL but the root URL! So "/anything" renders blah template but "/" renders index template.
Changing blah handler to
blah = ifTop $ render "blah"
does not change the behavior whatsoever. Only in this case I cant route to "/anything". Routing to "/" still renders index template. What am I missing? How can I get "/" to render template of my choice?