Skip to content

Instantly share code, notes, and snippets.

@abbajbryant
Created October 5, 2010 17:36
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 abbajbryant/611966 to your computer and use it in GitHub Desktop.
Save abbajbryant/611966 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( "\r\n" ), [ ]),
html.tag( 'body', [
html.tag( 'div', [
html.tag( 'div', [
html.tag( 'h1', [
html.link( 'Twig Overload!'|trans, [ 'controller' : 'pages', 'action' : 'display', 'home' ])
]|join( "\r\n" ), [ ])
]|join( "\r\n" ), [ 'id' : 'header' ]),
html.tag( 'div', [
session.flash,
session.flash( 'auth' ),
content_for_layout
]|join( "\r\n" ), [ 'id' : 'content' ]),
html.tag( 'div', [
html.image( 'cake.power.gif', [
'alt': 'Powered by CakePHP'|trans,
'url': 'http://cakephp.org'
])
]|join( "\r\n" ), [ 'id' : 'footer' ])
]|join( "\r\n" ), [ 'id' : 'container' ])
]|join( "\r\n" ), [ ])
]|join( "\r\n" ), [ '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