-
-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
apiThis has to do with the Python API (view)This has to do with the Python API (view)featureNew featureNew featuregood first issueAn issue that isn't necessarily easy to implement, but not required to be an expert in view.pyAn issue that isn't necessarily easy to implement, but not required to be an expert in view.py
Description
Feature description
For "batteries-detachable" purposes, there should be an API for creating custom loaders. Perhaps some plugin API could be introduced with this? (If so, that will be a separate issue).
Feature example API
[app]
loader = "custom"from view import new_app, App, Route
from pathlib import Path
@app.loader
async def load(app: App, path: Path) -> list[Route]:
return [...]Anything else?
No response
Metadata
Metadata
Assignees
Labels
apiThis has to do with the Python API (view)This has to do with the Python API (view)featureNew featureNew featuregood first issueAn issue that isn't necessarily easy to implement, but not required to be an expert in view.pyAn issue that isn't necessarily easy to implement, but not required to be an expert in view.py