sitegeist/stencil-roller

Json rendering for headless Neos

dev-master 2019-10-02 16:15 UTC

This package is auto-updated.

Last update: 2024-11-14 21:04:15 UTC


README

Json API for headless Neos

This is WIP, everything in here may change or turn out to be a bad idea at all.

This package will expose the content of each document as json. You can access the document data by using .stencil.roller.json suffix instead of .html.

The returned json:

{
   document: {
     identifier 
     nodeType
     properties: {
       // all properties of the node
     }  
     content: {
       // all children of type Content and ContentCollection recursively 
     } 
   }
   children: [{identifier, uri}, ..] // all children of type Document
}

Authors & Sponsors

The development and the public-releases of this package is generously sponsored by our employer https://www.sitegeist.de.

Installation

Sitegeist.Stencil.Roller is available via packagist. Just run composer require sitegeist/stencil-roller to install it. We use semantic-versioning so every breaking change will increase the major-version number.

Contribution

We will gladly accept contributions. Please send us pull requests.