ReactPy ASGI Middleware and standalone ReactPy ASGI App#1113
ReactPy ASGI Middleware and standalone ReactPy ASGI App#1113Archmonger merged 88 commits intoreactive-python:developfrom
Conversation
|
The more I develop this, the more I realize it's unwise to finish this PR until the following issues are closed
This PR is in a 90% finished state, but I will hold off on finishing it for now and refocus on template tags. |
… into asgi-middleware
|
@rmorshea I will implement things using I would feel more comfortable using |
|
Note to self: html.html(
{"lang": "en"},
html.head(
...,
),
html.body(
...,
),
)It also seems logical to have EDIT: Not realistic since the root object needs to be a component, not VDOM. |
- `ReactPy` class has been created as the standalone API for ReactPy. - `ReactPyMiddleware` has been created as the version of ReactPy that can wrap other ASGI web frameworks. - Added a template tag to use alongside our middleware. - `@reactpy/client` has been rewritten to be more modular. - `reactpy.backends.*` is removed.
Issues
SimpleReactPyClientto not use pre-defined endpoints #1079Solution
Create a ReactPy ASGI application and middleware.
Features of the ASGI application/middleware
For example, this is the interface for ReactPy's standalone mode:
Major Changes
ReactPyclass has been created as the standalone API for ReactPy.ReactPyMiddlewarehas been created as the version of ReactPy that can wrap other ASGI web frameworks.@reactpy/clienthas been rewritten to be more modular. This also helps in preparation for template tags.reactpy.backends.*is removed.Checklist
Please update this checklist as you complete each item:
By submitting this pull request I agree that all contributions comply with this project's open source license(s).