-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[import-maps] Re-implement dynamic resource (#18648)
The "sub" functionality of wptserve's "pipe" feature has previously been identified as a candidate for removal [1]. While it can generally be replaced with a filename-based pattern, the optional argument can only be specified with the query-string-based approach. The file `static-import.js` in the import-maps test suite is the only existing usage of the optional argument. Refactor it to use a Python handler so that a future patch may replace the remaining "pipe"-based usages with filename-based usages. [1] #15680
- Loading branch information
1 parent
8a0958f
commit 287f2dd
Showing
5 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
def main(request, response): | ||
return ( | ||
(('Content-Type', 'text/javascript'),), | ||
'import "{}";\n'.format(request.GET.first('url')) | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
def main(request, response): | ||
return ( | ||
(('Content-Type', 'text/javascript'),), | ||
'import "{}";\n'.format(request.GET.first('url')) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters