Skip to content

parallax/inertia-statamic-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Inertia.js adapter for Statamic

Installation

  1. Install the package using Composer:
composer require parallax/inertia-statamic-adapter
  1. Create your root template in resources/views/app.blade.php
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <link href="{{ mix('/css/app.css') }}" rel="stylesheet" />
    <script src="{{ mix('/js/app.js') }}" defer></script>
  </head>
  <body>
    @inertia
  </body>
</html>
  1. Follow the Inertia.js documentation for client-side installation

  2. Create a Pages directory within /resources/js

Component paths

The adapter will use studly-cased collection & blueprint handles to generate the component paths. For example a collection & blueprint with the respective handles of blog & article the adapter will attempt to locate the component in the following location:

/resources/js/Pages/Blog/Article

License

The MIT License (MIT)

About

Inertia.js adapter for Statamic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages