Skip to content

Instantly share code, notes, and snippets.

Created October 5, 2010 05:52
Show Gist options
  • Save anonymous/611070 to your computer and use it in GitHub Desktop.
Save anonymous/611070 to your computer and use it in GitHub Desktop.
{{[
html.docType,
html.tag( 'html',[
html.tag( 'head',[
html.charset,
html.tag( 'title', title_for_layout|trans ),
html.css([
'cake.generic'
], null, [ 'media' : 'screen, projection' ]),
html.script([
]),
scripts_for_layout
]|join ),
html.tag( 'body', [
html.tag( 'div', [
html.tag( 'div', [
html.tag( 'h1', [
html.link( 'Twig Overload!'|trans, [ 'controller' : 'pages', 'action' : 'display', 'home' ])
]|join, [ ])
]|join, [ 'id' : 'header' ]),
html.tag( 'div', [
session.flash,
session.flash( 'auth' ),
content_for_layout
]|join, [ 'id' : 'content' ]),
html.tag( 'div', [
html.image( 'cake.power.gif', [
'alt': 'Powered by CakePHP'|trans,
'url': 'http://cakephp.org'
])
]|join, [ 'id' : 'footer' ])
]|join, [ 'id' : 'container' ])
]|join )
]|join, [ 'xmlns' : 'http://www.w3.org/1999/xhtml' ] )
]|join }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment