Open
Description
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 compiler (or maybe a Bun
plugin?) that allows ReactPy to be compiled down into flatpage(s).
For example, a CLI command might looks like this:
reactpy flatpages "glob_pattern/to/my_*.html" --outdir "dist/"
We should also have a Python API equivalent for people wanting to script this behavior. It might look like this:
from reactpy.pyscript import compile_flatpages
compile_flatpages("glob_pattern/to/my_*.html", outdir="dist/")