title: Passing a function into an EJS template for use in an onclick event?
body: <p>I'm trying to pass a function into an EJS template and have it be set to an onclick event in the template.  Is this possible?</p>
  
  <p>In other words, something like this</p>
  
  <pre><code>var clickHandler = function() { console.log("I am in the click handler!"); }
  var template = new EJS({ url: "/template.ejs"  });
  var html = template.render({ clickHandler: clickHandler })
  $("#target").html(html);
  </code></pre>
  
  <p>Where the template looks something like</p>
  
  <pre><code>&lt;p onclick='clickHandler'&gt;Click Me&lt;/p&gt;
  </code></pre>