Skip to main content
Deno 2 is finally here 🎉️
Learn more

inertia_oak_middleware

About @inertiajs inertia server-side adapter for the @denoland Deno web-framework @oakserver oak

Credits

Favicon convertet from https://github.com/hashrock licensed under MIT

Features

  • Basic Inertia render
  • Static asset support
  • template to integrate with JS-UI-framework tooling
    • preferred eta but it is not possible, because vite cant process .eta and <%= =%>
    • check if vite can process {{{ html }}}
    • make it possible add support multiple renderer
  • Version support
    • Basic support
    • Move in Middleware to return early reference ?
      • Ask on discord or don’t do it because the Pricing CRM sets headers and cookies even though the version mismatch and the render is the last call anyways.
      • Check if complete html should be returned on POST request without version header -> Not a use case
    • Session support ( reflash session when it contains errors, and version is incorrect )
  • Props
    • Shared Props
    • Computed Props
  • Redirect ( with shorthand ) for example in store methods
    • internal
    • external via inertia.location
  • Validation Errors
  • View Data
  • Partial Reloads

In question

  • Log if request version equals current version
  • Setup with session