def body(): return html.body( html.div(id='container')( html.has_block('header')( html.header( html.block('header') ), html.newline() ), html.has_block('main')( html.div(id='main')( html.block('main') ) ), html.has_block('footer')( html.newline(), html.footer( html.block('footer') ) ) ), body_end_scripts(), )
def site_body(): return html.has_block('container')( html.div(class_='container')( html.block('container'), html.block('undefined'), html.has_block('noblock')( html.p() ) ) )
def body(): return html.body( html.div(id='container')( html.has_block('header')(html.header(html.block('header')), html.newline()), html.has_block('main')(html.div(id='main')(html.block('main'))), html.has_block('footer')(html.newline(), html.footer(html.block('footer')))), body_end_scripts(), )
def head(): return html.head( html.meta(charset='utf-8'), html.newline(), # Always force latest IE rendering engine (even in intranet) & Chrome Frame # Remove this if you use the .htaccess html.meta(http_equiv='X-UA-Compatible', content='IE=edge,chrome=1'), html.newline(), html.join(html.title(html.block('title'))), html.newline(), meta_description(), meta_author(), html.newline(), # Mobile viewport optimized: j.mp/bplateviewport html.meta(name='viewport', content='width=device-width, initial-scale=1.0'), html.newline(), # Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references html.link(rel='shortcut icon', href=static('favicon.ico')), html.link(rel='apple-touch-icon', href=static('apple-touch-icon.png')), html.newline(), # CSS : implied media="all" html.link(rel='stylesheet', href=static('css/style.css')), # Uncomment if you are specifically targeting less enabled mobile browsers html.link(rel='stylesheet', media='handheld', href=static('css/handheld.css')), html.newline(), # All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects html.script(src=static('js/libs/modernizr-1.6.min.js'))(), )
def head(): return html.head( html.meta(charset='utf-8'), html.newline(), # Always force latest IE rendering engine (even in intranet) & Chrome Frame # Remove this if you use the .htaccess html.meta(http_equiv='X-UA-Compatible', content='IE=edge,chrome=1'), html.newline(), html.join( html.title( html.block('title') ) ), html.newline(), meta_description(), meta_author(), html.newline(), # Mobile viewport optimized: j.mp/bplateviewport html.meta(name='viewport', content='width=device-width, initial-scale=1.0'), html.newline(), # Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references html.link(rel='shortcut icon', href=static('favicon.ico')), html.link(rel='apple-touch-icon', href=static('apple-touch-icon.png')), html.newline(), # CSS : implied media="all" html.link(rel='stylesheet', href=static('css/style.css')), # Uncomment if you are specifically targeting less enabled mobile browsers html.link(rel='stylesheet', media='handheld', href=static('css/handheld.css')), html.newline(), # All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects html.script(src=static('js/libs/modernizr-1.6.min.js'))(), )
def site_root(): return html.title( html.block('title')( 'Default Title' ) )
def view_b(): html.block('title')('New Title') return render_template()
def view_a(): html.block('container')( html.div('Container content.') ) return render_template()
def index(): html.block('title')( 'Element Consistency Tests' ) return render_template()
def index(): html.block('title')('Element Consistency Tests') return render_template()
def site_root(): return html.title(html.block('title')('Default Title'))
def view_b(): html.block('title')('New Title') return render_template()
def site_body(): return html.has_block('container')(html.div(class_='container')( html.block('container'), html.block('undefined'), html.has_block('noblock')(html.p())))
def view_a(): html.block('container')(html.div('Container content.')) return render_template()