Created
June 20, 2017 14:34
-
-
Save christophengelmayer/8c19a62722386339d11c9e1952b71dd9 to your computer and use it in GitHub Desktop.
NEOS Basic Templating
This file contains 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(Your.Site:AbstractPage) < prototype(Page) { | |
head { | |
headTags = ${' | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
'} | |
stylesheets { | |
css = Neos.Fusion:Tag { | |
tagName = 'link' | |
attributes { | |
href = Neos.Fusion:ResourceUri { | |
path = 'resource://Your.Site/Public/css/styles.css' | |
} | |
type = 'text/css' | |
rel = 'stylesheet' | |
} | |
} | |
} | |
} | |
body { | |
javascripts { | |
main = Neos.Fusion:Tag { | |
tagName = 'script' | |
attributes.src = Neos.Fusion:ResourceUri { | |
path = 'resource://Your.Site/Public/js/main.js' | |
} | |
} | |
} | |
} | |
} |
This file contains 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(Neos.NodeTypes:Page.Document) < prototype(Your.Site:AbstractPage) { | |
body = Your.Site:Page | |
} | |
prototype(Your.Site:Page) < prototype(Neos.Fusion:Template) { | |
templatePath = 'resource://Your.Site/Private/Fusion/Page/Page.html' | |
main = Neos.Neos:ContentCollection { | |
nodePath = 'main' | |
} | |
} |
This file contains 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
{main -> f:format.raw()} |
This file contains 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
include: **/*.fusion | |
root { | |
default { | |
type = ${node.nodeType.name + '.Document'} | |
renderPath > | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment