Skip to content

Instantly share code, notes, and snippets.

@grebaldi
Created September 5, 2018 10:23
Show Gist options
  • Save grebaldi/b5ea85b2fb9cd1c7518ea2c6099773fa to your computer and use it in GitHub Desktop.
Save grebaldi/b5ea85b2fb9cd1c7518ea2c6099773fa to your computer and use it in GitHub Desktop.
Spread in fusion
/**
* In Fusion
*/
foo = Neos.Fusion:Renderer {
type = 'Vendor.Site:Foo'
element {
...${myContextVariable}
...${myOtherContextvariable}
}
}
/**
* In AFX
*/
prototype(Vendor.Site:Component) < prototype(Neos.Fusion:Component) {
image = Neos.Fusion:RawArray {
src = 'somewhere'
alt = 'something'
}
renderer = afx`
<Vendor.Site:Image size="large" {...props.image}/>
`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment