mde / ejs

Embedded JavaScript templates -- http://ejs.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using ejs inside a js file

vrzc opened this issue · comments

i was wondering if it's possible to use ejs inside a js file other than using it inside the script tag

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.