Node EJS passing data to an include
<p>Currently I'm messing around with Node and EJS templates.</p>

<p>However I have hit a problem. Im building up a page made up of multiple components and im calling these components into the index page like so:</p>

<pre><code>&lt;% include components/header.ejs %&gt;
</code></pre>

<p>My question is how can I pass data (json) to that specific include?</p>

<p>I want to be able to reuse components however to show different content coming from json.</p>

<p>Thanks</p>