sitegeist/stencil-roller

无头 Neos 的 JSON 渲染

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

This package is auto-updated.

Last update: 2024-09-14 20:40:50 UTC


README

无头 Neos 的 JSON API

这是正在进行的工作(WIP),这里面的所有内容都可能改变,甚至可能完全是个糟糕的想法。

此包将暴露每个文档的内容为 JSON。您可以通过使用 .stencil.roller.json 后缀而不是 .html 来访问文档数据。

返回的 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
}

作者 & 赞助者

此包的开发和公共发布得到了我们雇主的大力赞助 https://www.sitegeist.de

安装

Sitegeist.Stencil.Roller 可通过 Packagist 获取。只需运行 composer require sitegeist/stencil-roller 即可安装。我们使用语义化版本控制,所以每次重大更改都会增加主版本号。

贡献

我们非常愿意接受贡献。请将您的 pull 请求发送给我们。