UNPKG

creamer

Version:

A flatiron plugin for dynamic coffeecup templates

75 lines (73 loc) 2.1 kB
module.exports = function() { doctype(5); return html(function() { head(function() { meta({ charset: 'utf-8' }); title('flatiron coffeecup views example'); link({ rel: 'stylesheet', href: '/css/bootstrap.min.css' }); link({ rel: 'stylesheet', href: '/css/bootstrap-responsive.min.css' }); return style("body {\n position: relative;\n padding-top: 90px;\n background-color: #fff;\n}"); }); return body({ 'data-spy': 'scroll', 'data-target': '.subnav', 'data-offset': '50' }, function() { div('.navbar.navbar-fixed-top', function() { return div('.navbar-inner', function() { return div('.container', function() { a('.brand', { href: '/' }, 'Creamer'); return div('.nav-collapse', function() { return ul('.nav', function() { li(this.home || '', function() { return a({ href: '/' }, 'Home'); }); li(this.about || '', function() { return a({ href: '/widgets' }, 'Widgets'); }); return li(this.about || '', function() { return a({ href: '/about' }, 'About'); }); }); }); }); }); }); div('.container', function() { return div('.row-fluid', function() { div('.span8', function() { return content(); }); return div('.span4', function() { return div('.hero-unit', function() { h2('Creamer'); return p('A great way to add coffee to flatiron'); }); }); }); }); script({ src: 'http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.1/jquery.min.js' }); return script({ src: '/js/bootstrap.min.js' }); }); }); };