Skip to content

Instantly share code, notes, and snippets.

@htuscher
Last active February 8, 2017 15:16
Show Gist options
  • Select an option

  • Save htuscher/e499d088deca478fbdc3cdb130ca9229 to your computer and use it in GitHub Desktop.

Select an option

Save htuscher/e499d088deca478fbdc3cdb130ca9229 to your computer and use it in GitHub Desktop.
Neos Fusion JSON
jobData = Neos.Fusion:RawArray {
'@context' = 'http://schema.org'
'@type' = 'JobPosting'
baseSalary = 10000
industry = 'Some thing'
title = ${q(node).property('title')}
jobLocation = Neos.Fusion:RawArray {
'@type' = 'Place'
address = Neos.Fusion:RawArray {
'@type' = 'PostalAddress'
addressLocality = ${q(node).property('location')}
country = 'Germany'
}
}
}
<script type="application/ld+json">
{jobData -> f:format.json(forceObject: true) -> f:format.raw()}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment