I'm using Node.js and trying to use a local function of a document that needs to use a JSON I send it in res.render. Is there a way to do it? Example of the way I was trying to use it:
<%local_variable = localFunction(sent_JSON)%>
Edit: sorry if this is a simple question, I'm a newbie when it comes to web development.