Fusion ViewHelper Reference
This reference was automatically generated from code on 2024-11-18
fusion:render
Render a Fusion object with a relative Fusion path, optionally pushing new variables onto the Fusion context.
- Implementation:
Neos\Fusion\ViewHelpers\RenderViewHelper
Arguments
path
(string): Relative Fusion path to be renderedcontext
(array, optional): ReAdditional context variables to be setfusionPackageKey
(string, optional): The key of the package to load Fusion from, if not from the current contextfusionFilePathPattern
(string, optional): Resource pattern to load Fusion from. Defaults to: resource://@package/Private/Fusion/
Examples
Simple:
Fusion:
some.given {
path = Neos.Fusion:Template
…
}
ViewHelper:
<ts:render path="some.given.path" />
Expected result:
(the evaluated Fusion, depending on the given path)
Fusion from a foreign package:
<ts:render path="some.given.path" fusionPackageKey="Acme.Bookstore" />
Expected result:
(the evaluated Fusion, depending on the given path)