It is always possible. Name one case where it isn't, and I'll tell you how it's possible :)
Web frameworks should handle input (routing, request fields, url query) and output (templates). That's it.
Web frameworks should handle input (routing, request fields, url query) and output (templates). That's it.