-
-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ComponentResourceHandler to server (#3284)
This PR implements a so called ComponentResourceHandler that is always added to the server. The ComponentResourceHandler resolves paths relative to some module, i.e. it resolves patterns like <endpoint>/<module>/<class>/<attribute>/<path_to_resource>. Internally the resource handler then resolves the path to the module that was referenced, the class that was referenced and finally the attribute on that class. If and only if the requested resource is listed in that attribute will it resolve the path_to_resource and serve it. This means that ReactiveHTML and Template resources that reference local files can now be resolved correctly without having to be bundled into the Panel bundle itself.
- Loading branch information
1 parent
1acb03f
commit 9930953
Showing
8 changed files
with
302 additions
and
49 deletions.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.