Thursday 15 December 2016

Developing a node application ... should I be using script tags in ejs files?

I'm learning how to develop a node application. It's an app where people can post events happening around the city.I have an ejs file, new.ejs, that allows users to submit a new event. Obviously there is an event start time and end time. I want to make sure that the end time is AFTER the start time, so I simply added a script to do that, as follows:
Now this works just fine, it does what I want it to do.However, I know that EJS is designed to take back-end (node) javascript code and render it out into the view.My question is:Is adding front-end code between

No comments:

Post a Comment