Skip to content

Instantly share code, notes, and snippets.

@mficzel
Created October 17, 2019 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mficzel/15be6b92dd0f90cb6029e34d429e3841 to your computer and use it in GitHub Desktop.
Save mficzel/15be6b92dd0f90cb6029e34d429e3841 to your computer and use it in GitHub Desktop.
Fusion DSL json`...`
jsonLd = json`{
"@context": "http://schema.org",
"@type": "Organization",
"name": "Neos",
"url": "${__someExpression__}",
"contactPoint:$<Neos.Fusion:Map>": {
"items": "${__someExpression__}",
"itemRenderer": {
"@type": "ContactPoint"
"contactType": "${__someExpression__}",
"url": "${__someExpression__}"
}
}
}`
jsonLd = Neos.Fusion:DataStructure {
'@context' = "http://schema.org"
'@type' = "Organization"
name = "Neos"
url = ${__someExpression__}
contactPoint = Neos.Fusion:Map {
items = ${__someExpression__}
itemRenderer = Neos.Fusion:DataStructure {
"@type" = "ContactPoint"
contactType = ${__someExpression__}
url = ${__someExpression__}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment