[Catalyst] Displaying template files without adding new controller actions

Anthony Gladdish a.j.gladdish at newcastle.ac.uk
Mon Oct 11 14:02:02 GMT 2010


Hi,

I'd like to add various web pages to my Catalyst app without the need to modify controllers and restarting the server.
Instead, I just want to add a Template::Toolkit .tt2 file on the file system and it get picked up automatically.

I'm not sure of an elegant/recommended way to produce an action to handle this sort of functionality, presumably some sort of logic in Root default action, that automatically detects template and displays it otherwise produces error and redirects to my 404 handle.

Any tips would appreciated!

Thanks,

Anthony



More information about the Catalyst mailing list