I'm new to node.js. I'm trying to use EJS templates, and i've got a little obstacle. if i'm getting it right, all code inside <% %> is executed serverside. What i don't know is how can i use javascript functions,that are located in modules (js files) inside those tags. Should i include them smth like <script src="...">? but that means it will be sent to the browser but i don't want that (or do I?). What is the right architecture?
Second question is: What ejs helper is specifically? how can i make one? (srry, i can't find any simple example of it)