Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do you add attributes to script tag in jade e.g. async defer

I needed to add async and defer attributes according to the docs for adding a google plus one button. How do I do this in jade?

<script src="https://apis.google.com/js/platform.js" async defer></script>
like image 563
svnm Avatar asked Oct 26 '15 03:10

svnm


1 Answers

This worked for me:

script(async, defer, src='https://apis.google.com/js/platform.js')
like image 80
cocheci Avatar answered Oct 11 '22 15:10

cocheci