Call javascript functions on another file from an EJS templates in Harp.js
问题 Trying to make a website with Harp.js here. I use ejs templates, and want to store some useful javascript functions in a central file. How do I do that? I tried to use <% include _render_util.js %> But it does not work (seems like js file is not parsed). Any ideas? Thanks! 回答1: Although there are ways of making this work (sometimes), it's not something that was deliveratly built into Harp.js. Forcing this behaviour often takes time to debug and causes unexpected issues. Here is a quick