Vote count:
0
I'm using jade to generate a static website and I want to call moment.js from jade code.
I don't know how I am supposed to load the moment library
Here's my code
doctype html
html(lang="en")
head
script( src='scripts/require.js' )
script.
moment = require('scripts/moment');
body
p #{moment(Date.now()).format('MM/DD/YYYY')}
asked 31 secs ago
How to include client-side script in Jade template?
Aucun commentaire:
Enregistrer un commentaire