plack / Plack

PSGI toolkit and server adapters
http://plackperl.org/
Other
486 stars 214 forks source link

Render directory contents using methods #674

Open cwallacetlc opened 2 years ago

cwallacetlc commented 2 years ago

Instead of $dir_file and $dir_page lexicals in Plack::App::Directory, I made them methods, and also added render_file and render_dir methods in case a subclasser wants to do more than just sprintfs.

davorg commented 1 year ago

See https://github.com/plack/Plack/pull/693 for a discussion of a very similar PR. And https://github.com/plack/Plack/pull/695 for a work-in-progress replacement for that PR, taking @miyagawa's preferred approach.