aula
aula copied to clipboard
Move frame out of the handlers
- https://github.com/liqd/aula/commit/4ea328c18312062f7d42afa5184abbd7cf1c0e78#commitcomment-16353983
- https://github.com/liqd/aula/pull/126#issuecomment-189389039
#132
first attempt: https://github.com/liqd/aula/commit/a95525b1f69ce3dd8d723e73e9d36b832b40ece2
Since it doesn't reduce the number of calls to makeFrame, I reverted that. Other options:
- Use custom end point
GetHand callmakeFrameit in theHasServerinstance. - For forms, call it in our generic form handler.
- do it in
enter? - new type class
HasFramewith instances for all servant combinators that pushes calls tomakeFramefrom the top of the routing table down to the endpoints. (likeenter, but go more of the way on foot, i think.)
I like 3 most, even though I'm not sure if it can be done; followed by a combination of 1, 2.