Skip to content

Instantly share code, notes, and snippets.

@npatmaja
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save npatmaja/97bb47fe6c73147f678e to your computer and use it in GitHub Desktop.
Save npatmaja/97bb47fe6c73147f678e to your computer and use it in GitHub Desktop.
Use underscore js inside Jade, unescape attribute content

To be able to use underscore variable inside the Jade's attribute (make it unescaped) use != instead of only =. example

img(src!="<%= coverImage %>", height="100px")

taken from pugjs/pug#198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment