in reply to Handling different requests for a web app in one centralized place.

Seems like you can think of components as methods. Not being familiar with Mason (I use template toolkit, which is an analogue), I suspect that just breaking things down into smaller components could vastly simplify things for you.

Factor out the 'logic' into components, and call the components. Sounds like a fairly straightforward task.

  • Comment on Re: Handling different requests for a web app in one centralized place.