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

jquery - isAjaxRequest always return false -

php - SPIP: From Tag directly to an article -