How to include static files in html using node.js
<p>This is not a question about <strong>express.static()</strong></p>

<p>I have a application where I need to serve multiple pages which have same js and css dependencies. Hence, writing css and js includes using <code>&lt;script&gt;</code> or <code>&lt;link&gt;</code> tags on every single page is bad practice. </p>

<p>I am looking for a look alike <strong>php include</strong> way to do it. As php would process all php code  and send compiled html, I think same could be done with js on node server.</p>

<p>So a server would do kinda like below:</p>

<ol>
<li>get html from a resources.html</li>
<li>push above html to index.html</li>
<li>send index.html</li>
</ol>

<p>Or perhaps there could be other way around. Any idea?</p>