Skip to content

Instantly share code, notes, and snippets.

@bmavity
Created February 7, 2011 23:45
Show Gist options
  • Save bmavity/815538 to your computer and use it in GitHub Desktop.
Save bmavity/815538 to your computer and use it in GitHub Desktop.
Home page using new view engine
doc(
'<!DOCTYPE html>',
html(
head(
title('Software Development, Interaction Design'),
link({ rel: 'alternate', href: 'http://feeds.feedburner.com/brianmavitycomblog', type:'application/atom+xml', title: 'brianmavity.com - Atom' }),
link({ rel: 'stylesheet', href: '/css/reset.css', type: 'text/css', media: 'screen' }),
link({ rel: 'stylesheet', href: '/css/vertical-rhythm.css', type: 'text/css', media: 'screen' }),
link({ rel: 'stylesheet', href: '/css/site-layout.css', type: 'text/css', media: 'screen' }),
link({ rel: 'stylesheet', href: '/css/brown.css', type: 'text/css', media: 'screen' }),
//cssFiles.map(function(cssFile) {
//return link(rel: 'stylesheet', href: cssFile, type: 'text/css', media: 'screen');
//}),
body(
div({ id: 'content' },
div({ id: 'header' },
div({ id: 'logo' },
a({ href: '/' }, 'brianmavity.com'),
p('software development'),
p('interaction design')
),
div({ id: 'links' },
ul(
li(a({ href: '/' }, 'home')),
li(a({ href: '/blog' }, 'blog')),
li(a({ href: '/experience' }, 'experience')),
li(a({ href: '/contact' }, 'contact'))
)
),
div({ id: 'swooshie' }, div())
),
div({ id: 'main' },
div({ id: 'software-development', 'class': 'percent-block' }),
div({ id: 'interaction-design', 'class': 'percent-block' })
),
div({ id: 'footer' }, '&copy;2008-2011 Brian Mavity')
),
script(
(function() {
var _gaq = [['_setAccount', 'UA-5334833-1'], ['_trackPageview']];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.async = true;
g.src = '//www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
})(document, 'script');
}).toString()
)
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment