Skip to content

Instantly share code, notes, and snippets.

@radiodario
Created April 27, 2011 10:39
Show Gist options
  • Save radiodario/944045 to your computer and use it in GitHub Desktop.
Save radiodario/944045 to your computer and use it in GitHub Desktop.
This jade template is outputting all of the children of head onto the body
!!! 5
html
head
title= title
script(type='text/javascript', src='/javascripts/jquery-1.5.2.min.js')
script
var wishes = !{JSON.stringify(wishes)};
script
// update birthday wishes
setInterval(function() {
$('#wishes').load('/wishes #wishesList');
}, 5000);
body
img(src='/manhead.png', height='42px', class='logoimg')
h1 Birthday Wishes
div#wishes
ul#wishesList
!= partial('wish', wishes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment