For the ProcessWire project. I created this simple Inertia adapter.
And also a sample ProcessWire + Svelte + Laravel Mix + Inertia project.
Inertia.js for ProcessWire
Inertia allows you to create fully client-side rendered, single-page apps, without much of the complexity that comes with modern SPAs. It does this by leveraging existing server-side frameworks.
Inertia isn’t a framework, nor is it a replacement to your existing server-side or client-side frameworks. Rather, it’s designed to work with them. Think of Inertia as glue that connects the two. Inertia comes with three official client-side adapters (React, Vue, and Svelte).
This is an adapter for ProcessWire. Inertia replaces PHP views altogether by returning JavaScript components from controller actions. Those components can be built with your frontend framework of choice.
Features
-
✓ Render React/Vue/Svelte from controllers
-
✓ Flash data passed to props
-
✓ Assets Versioning: https://inertiajs.com/asset-versioning
-
❏ Lazy Evaluation: https://inertiajs.com/responses#lazy-evaluation
-
✓ Auto put csrf token in props: https://inertiajs.com/csrf-protection
-
✓ Override redirect codes: https://inertiajs.com/redirects#303-response-code
-
❏ Partial reloads: https://inertiajs.com/partial-reloads
-
✓ Shared data interface: https://inertiajs.com/shared-data
Installation
You only need…
Top comments (0)