Jade: How to include a javascript file Jade: How to include a javascript file express express

Jade: How to include a javascript file


Put this in your jade file:

script(src="/Scripts/jquery.timeago.js")


You can put this code in your jade file:

   script(type='text/javascript' src='public/vendor/jquery/jquery.min.js')


Also, if you would like to include inline js within your jade file you could do the following as well:

script(type="text/javascript").console.log('hello world');