Skip to content

Allow ReactPy to compile to raw HTML #1272

Open
@Archmonger

Description

@Archmonger

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/")

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-2-moderateShould be resolved on a reasonable timeline.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions