Created
July 29, 2011 18:04
-
-
Save AnsonT/1114364 to your computer and use it in GitHub Desktop.
Client-side Coffeescript with Jade and JQuery
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(lang='en') | |
head | |
title Title | |
script(type='text/javascript', src='javascripts/jquery.js') | |
script(type='text/javascript', src='http://jashkenas.github.com/coffee-script/extras/coffee-script.js') | |
:coffeescript | |
$(document).ready -> alert 'Hello World' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example of using client-side CoffeeScript with JQuery in Jade templates.
This example uses a private copy of jQuery. Production code should pre-compile CoffeeScript to js.