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

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -