Open cwallacetlc opened 2 years 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.
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.