Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Support handlers altering the set of files that appear in a directory listing. #115

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

Conversation

jgraham
Copy link
Member

@jgraham jgraham commented Mar 14, 2017

In cases like .any.js files for wpt we create some virtual resources
for on-disk files. It would be nice if they appeared in directory
listings. To allow that to happen, we add a mechanism so that when a
handler is registered with the router we can also register a
corresponding listing_fixup function that takes the request and the
list of files in the directory and returns an amended list of files.


This change is Reviewable

… listing.

In cases like .any.js files for wpt we create some virtual resources
for on-disk files. It would be nice if they appeared in directory
listings. To allow that to happen, we add a mechanism so that when a
handler is registered with the router we can also register a
corresponding listing_fixup function that takes the request and the
list of files in the directory and returns an amended list of files.
@jgraham jgraham requested a review from Ms2ger March 14, 2017 19:10
@Ms2ger
Copy link
Contributor

Ms2ger commented Mar 15, 2017

I think I'd like to see how this is used in wpt-tools before reviewing.

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

Successfully merging this pull request may close these issues.

2 participants