Created
November 29, 2019 10:36
-
-
Save Sebobo/cef80180acc38f869cba01f51d2d8294 to your computer and use it in GitHub Desktop.
Nested Fusion components in NeosCMS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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