Troglodyne-Internet-Widgets / tCMS

A Perl CMS with a focus on multiple media types, and flexible data storage backends
Other
2 stars 6 forks source link

Refactor common routes into their own module #287

Open teodesian opened 8 months ago

teodesian commented 8 months ago

Trog::Routes::HTML::forbidden, etc

teodesian commented 8 months ago

Also render output based on requested content type! good way to flesh out dynamic dispatch of this.

teodesian commented 8 months ago

So that will require making all the renderers have a base class which implement _generic_route and these various status code responses. We then will need to do any relevant wrap from there, but likely should just make them all do an ::index() call on their relevant module.