https://github.com/netlogix/netlogix.esirendering
Render ESIs in Neos Fusion
https://github.com/netlogix/netlogix.esirendering
esi neos nginx varnish
Last synced: about 1 month ago
JSON representation
Render ESIs in Neos Fusion
- Host: GitHub
- URL: https://github.com/netlogix/netlogix.esirendering
- Owner: netlogix
- License: mit
- Created: 2020-12-10T13:16:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-23T17:14:38.000Z (about 4 years ago)
- Last Synced: 2025-03-17T11:51:24.868Z (about 1 year ago)
- Topics: esi, neos, nginx, varnish
- Language: PHP
- Homepage: https://websolutions.netlogix.de
- Size: 14.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Netlogix.EsiRendering
This package provides a simple way to render [edge side includes](https://de.wikipedia.org/wiki/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](https://github.com/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:
```html
renderer = afx`
This is rendered outside of the esi
This is rendered inside of the esi
The given node is available as {node}
`
```
This will render a `` tag after the first `
`.
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`:
```yaml
Netlogix:
EsiRendering:
debug: true
```
This will render a `link` before the ESI:
```html
```
This is enabled by default for the Development context.