Created
September 5, 2018 10:23
-
-
Save grebaldi/b5ea85b2fb9cd1c7518ea2c6099773fa to your computer and use it in GitHub Desktop.
Spread in fusion
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
/** | |
* 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