定制 netlogix/esi-rendering 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

netlogix/esi-rendering

最新稳定版本:1.3.0

Composer 安装命令:

composer require netlogix/esi-rendering

包简介

Render content in fusion as esi:include

README 文档

README

This package provides a simple way to render edge side includes in Neos. This alows you to individually cache parts of the page (e.g. header/footer).

We recommend using this package together with flowpack/varnish for Varnish integration.

Install package

composer require netlogix/esi-rendering

Usage

To render a fusion path as ESI, you can use the Netlogix.EsiRendering:RenderAsEsi Fusion implementation:

renderer = afx`
    <p>This is rendered outside of the esi</p>
    
    <Netlogix.EsiRendering:RenderAsEsi node={props.site} cacheIdentifier="my-esi">
        <p>This is rendered inside of the esi</p>
        
        <p>The given node is available as {node}</p>
    </Netlogix.EsiRendering:RenderAsEsi>
`

This will render a <esi:include src="..."> tag after the first <p>.

ESIs are not used in the Neos backend, instead the content will be rendered directly.

Debugging

To get the ESI uri, you can set the following setting to true:

Netlogix:
  EsiRendering:
    debug: true

This will render a link before the ESI:

<link rel="esi:include" esi-identifier="my-esi" context-node="/sites/my-site@live" href="/esirendering?fusionPath=...">

This is enabled by default for the Development context.

统计信息

  • 总下载量: 11.49k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-09