ZeroIntensity / view.py

The Batteries-Detachable Web Framework
https://view.zintensity.dev
MIT License
206 stars 15 forks source link

Support for JavaScript UI's #112

Closed ZeroIntensity closed 1 month ago

ZeroIntensity commented 6 months ago

Feature description

View should add an API for returning responses via things like React, Svelte, or even Next builds.

Feature example API

from view import new_app, react

app = new_app()

@app.get("/")
async def index():
    return react("index.tsx")

app.run()

Anything else?

This will be waiting on #111, as things like TypeScript might need to be built.

ZeroIntensity commented 1 month ago

I'm not sure view.py can even support this - the build step should probably be configured by the user. If this comes back up, I'll implement this.