Monday, 22 May 2017

Is it correct to put javascript code on ejs files?

Hi I'm developing a simple app in Node JS using express and EJS for all the templates/views of the project. I'm putting some simple scripts (relateds basically with interaction: show hide things for example) on the .ejs file directly...and I don't know if to do so will be a bad practice. Where I'm supposed to put this kind of snippets? I mean they are quite simple and there not really related with the main functionality of the app.



via programador_mierder

No comments:

Post a Comment