Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render directory contents using methods #674

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cwallacetlc
Copy link

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.

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
Copy link

davorg commented Jun 7, 2023

See #693 for a discussion of a very similar PR. And #695 for a work-in-progress replacement for that PR, taking @miyagawa's preferred approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants