Using ejs inside a js file
vrzc opened this issue · comments
Sphinx commented
i was wondering if it's possible to use ejs inside a js file other than using it inside the script tag
Matthew Eernisse commented
Depends on whether you mean client-side or server-side. Essentially all EJS does is evaluate a bunch of JavaScript and spit out a string. What you do with that string is up to you. You could use EJS to create JavaScript source code, or even (I have done thing) to generate other EJS templates.