-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReactPy ASGI Middleware and standalone ReactPy ASGI App #1113
ReactPy ASGI Middleware and standalone ReactPy ASGI App #1113
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. |
Issues
SimpleReactPyClient
to 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
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.@reactpy/client
has 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).