Created
April 27, 2011 10:39
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !!! 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