node.js - ExpressJS: How to render a EJS file locally -


excuse me novice question.

i want render ejs template in module. examples i've seen render them in main 'app' or pass 'app' app has view engine set:

app.set('view engine', 'ejs'); 

but want render ejs template in js file, app not available. how tell find ejs file? general way of doing this?

thank you.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -