Hackage 2: Displaying logged-in info

Ian Lynagh igloo at earth.li
Fri Jul 13 17:14:15 CEST 2012

Hi all,

I'd like to add "logged in info" to the Hackage 2 page template; i.e. if
not logged in then put a small login form somewhere, and if you are
logged in then show the username and provide a logout button.

I've started experimenting, and ran into a problem with the caching. It
looks like complete pages are currently cached, e.g. in
but this is incompatible with them having personalised logged-in info
on. So we would need to switch to either only caching the contents of
the "content" div, or caching the data that the page is built from. The
former is probably simpler.

Given the above problem, and the breadth of the change, I thought I'd
check what other people think before spending too much time on this. So,
does this sound like the right way to go?


More information about the cabal-devel mailing list