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

google app engine - 403 Forbidden POST - Flask WTForms -

Android layout hidden on keyboard show -

Parse xml element into list in Python -