An open API service indexing awesome lists of open source software.

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

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.