i just read through tutorial 11, thanks for it.
i'm interested in your use of requirements. i think in my own login set up, a route will just have a function with an if flow control structure in it: if not logged-in-p, redirect (to prev page or login page) + flash user-error. when you turn logged-in-p into a ningle requirement, it does seem elegant, but i wonder how you handle the failure case? if you can't load the given route, do you redirect somehow?
thanks again
i just read through tutorial 11, thanks for it.
i'm interested in your use of requirements. i think in my own login set up, a route will just have a function with an if flow control structure in it: if not logged-in-p, redirect (to prev page or login page) + flash user-error. when you turn logged-in-p into a ningle requirement, it does seem elegant, but i wonder how you handle the failure case? if you can't load the given route, do you redirect somehow?
thanks again