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
Post a Comment