I use Express 4.12.3 + JADE + flat-ui npm module (http://ift.tt/1EquvA3)
How is it possible use this module in jade?
When i run page, i get many 404 codes. I fix it with:
app.get('/e-css/flat/bootstrap.css',function(req,res) {
res.sendFile(path.join(__dirname,'node_modules','flat-ui','bootstrap','css','bootstrap.css'));
});
In Jade:
link(rel='stylesheet', href='/e-css/flat/bootstrap.css')
I have in code many links like this.
Can be there more elegant solution?
Thank you.
Aucun commentaire:
Enregistrer un commentaire