Hello, I'm writing my first non-trivial web2py application, and I have a hard time keeping my HTML boilerplate in views rather than in controllers.
More specifically, some of my FORMs feature a lot of fancy markup + javascript. Since they deal mostly with HTML, I'd rather put them in HTML view templates; but I need to access them from the controller, to perform the "form.accepts()" validation tests. Is there a reasonable / preferred way to handle a FORM's lifecycle (validation + handling of the POST request) in the controller, while keeping its HTML content mostly in the view template?

