schranz-templating / templating

A template abstraction prototype for php template engines.
MIT License
23 stars 0 forks source link

Support for Inertia #71

Open alexander-schranz opened 1 year ago

alexander-schranz commented 1 year ago

https://inertiajs.com/

alexander-schranz commented 1 year ago

Inertia itself requires a Response object to be returned instead of a string. As based on the request method it will return HTML or JSON.

https://github.com/inertiajs/inertia-laravel/blob/b00fe8cf741766b41de69978f9e90ee6d1470d36/src/Response.php#L106-L110

So I think support for Inertia is not possible in this case.