You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we have client side components, it is now technologically possible for ReactPy to be compiled into a static site / flatpage(s).
Proposed Actions
Create some sort of reactpy CLI (or maybe a Bun plugin?) that allows ReactPy to be compiled down into flatpage(s).
This function should compile client-side components *.py files into equivalently named *.html files. Alternatively, if the user provides a glob pattern with *.html, these templates are assumed to be Jinja compatible.
Uh oh!
There was an error while loading. Please reload this page.
Current Situation
Now that we have client side components, it is now technologically possible for ReactPy to be compiled into a static site / flatpage(s).
Proposed Actions
Create some sort of
reactpy
CLI (or maybe aBun
plugin?) that allows ReactPy to be compiled down into flatpage(s).This function should compile client-side components
*.py
files into equivalently named*.html
files. Alternatively, if the user provides a glob pattern with*.html
, these templates are assumed to be Jinja compatible.For example, a CLI command might looks like this:
We should also have a Python API equivalent for people wanting to perform SSG via scripts. It might look like this:
The text was updated successfully, but these errors were encountered: