Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is ejs front-end or back-end?

Tags:

ejs

Newbie question: I'm learning the MEAN stack and is use EJS (embedded javascript) as the template engine. It's website says its a "cleans the HTML out of your JavaScript with client side templates" but it seems like to me that the <%= %> and <% %> are compiled on the backend and sent to the client afterwards. Am I not understanding something?

like image 574
Yi Z Avatar asked Dec 02 '25 02:12

Yi Z


1 Answers

EJS work for both server side and client side.

Personally i use it with nodejs ( server side ), and for the client side my choice is http://mustache.github.io feel comfortable with it.

like image 133
Yassine Khachlek Avatar answered Dec 05 '25 00:12

Yassine Khachlek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!