Skip to content

Instantly share code, notes, and snippets.

@Sebobo
Created November 29, 2019 10:36
Show Gist options
  • Save Sebobo/cef80180acc38f869cba01f51d2d8294 to your computer and use it in GitHub Desktop.
Save Sebobo/cef80180acc38f869cba01f51d2d8294 to your computer and use it in GitHub Desktop.
Nested Fusion components in NeosCMS
prototype(My.Example:Component.Example) < prototype(Neos.Fusion:Component) {
inputVar1 = ''
inputVar2 = ${[]}
renderer = Neos.Fusion:Component {
@apply.props = ${props}
customVar = ${Array.join(props.inputVar2, ',') + props.inputVar1}
renderer = afx`
<div>
{props.customVar}
{props.inputVar1}
</div>
`
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment