Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 22nd, 2013  |  syntax: None  |  size: 1.20 KB  |  views: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ul.nav
  2.             - var obj = { '/':'i.icon-home.icon-white Home', '/academy' : "Code Academy", '/forum': "Forum", '/about':'About' }
  3.               - for(var key in obj){
  4.                 - if (id == key)
  5.                   li.active
  6.                     a(href='#'+key)= obj[key]
  7.                 - else
  8.                   li
  9.                     a(href='#'+key)= obj[key]
  10.  
  11.  
  12.  
  13.  
  14.  
  15. Outputs:
  16.  
  17. Express
  18. 500 SyntaxError: Unexpected token catch
  19.  
  20.     at Object.Function ()
  21.     at Object.exports.compile (/home/cody/node_modules/jade/lib/jade.js:176:8)
  22.     at Object.exports.render (/home/cody/node_modules/jade/lib/jade.js:215:17)
  23.     at View.exports.renderFile [as engine] (/home/cody/node_modules/jade/lib/jade.js:243:13)
  24.     at View.render (/home/cody/node_modules/express/lib/view.js:75:8)
  25.     at Function.app.render (/home/cody/node_modules/express/lib/application.js:504:10)
  26.     at ServerResponse.res.render (/home/cody/node_modules/express/lib/response.js:753:7)
  27.     at exports.index (/home/cody/workspace/CodeMeh WebServer/codemeh/routes/index.js:9:7)
  28.     at callbacks (/home/cody/node_modules/express/lib/router/index.js:161:37)
  29.     at param (/home/cody/node_modules/express/lib/router/index.js:135:11)