javascript - Using the Jade engine on all .jade files regardless of location -



javascript - Using the Jade engine on all .jade files regardless of location -

i'm using node , express framework website, instead of separate views folder, have site construction .jade files anywhere within static folder.

what's simplest way of getting jade compile templates if end in .jade? have write middleware function regex \.jade$? how this?

use glob. pattern '**/*.jade' https://www.npmjs.org/package/glob

javascript node.js express jade

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -