Instead of syncing data between the client and the server via HTTP requests, Meld uses a persistent WebSocket connection. When data is updated on the client, the data is sent to the server where the Component renders the new HTML and sends it back to the client.
The page HTML is written using Jinja templates, just as you would with Flask. Meld utilizes Morphdom to intelligently update the DOM so only elements on the page that have been changed will be updated. This gives a fast, smooth, reactive experience for the user with server-side rendered templates.
Install Flask-Meld in your virtual environment.
pip install flask-meld
Meld uses the Application Factory approach to structuring an application and gives the user a CLI tool to get their project setup quickly by automating much of the boilerplate code for you.
pip install --upgrade flask-meld