Skip to content

Instantly share code, notes, and snippets.

@smathy
Created August 18, 2011 17:50
Show Gist options
  • Save smathy/1154648 to your computer and use it in GitHub Desktop.
Save smathy/1154648 to your computer and use it in GitHub Desktop.
get '/': ->
render 'index.jade', layout: 'layout.coffee'
view layout: ->
html ->
head ->
...etc...
view 'index.jade': """
p Blah
"""
# I'd expect not to have to explicitly specify the layout, but if I don't then it interprets
# the layout as jade instead of as coffeekup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment