#[cleverdevil]The web framework that I created years ago works by having controllers return JSON-like native Python data structures, and if the client requests JSON, it sends it, if it requests HTML, then the JSON data structure is passed to a template, which then creates HTML