Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.ejs when compared to .html? [closed]

I have a Node Js project where I have all front end files in .ejs which calls the server.js which is doing back end work.

1)Does ejs provide more functionality when compared to html ?

2)Is this the node expressJs functionality ?

3)Can I do angularJs keeping extension as .ejs? eg:ng-controller Confused;-)

like image 342
jeny Avatar asked Mar 17 '16 20:03

jeny


1 Answers

1) Does ejs provide more functionality when compared to html ?

Yes, EJS and Jade are template engine for node.js and express. With they it's possible to do conditions and access variables returns from the server. Doen't is necessary to send HTML code to the response. They mix all functionality HTML (js, jquery, bootstrap, etc) plus template engine advantages.

2) Is this the node expressJs functionality ?

Is this node.js functionality.

3) Can I do angularJs keeping extension as .ejs? eg:ng-controller

Similar questions:

  • can i use EJS with Angular js?

  • Actual use of Jade template and angularjs

like image 106
BrTkCa Avatar answered Sep 18 '22 13:09

BrTkCa