title: How do I deal with static navbars in Node?
body: <p>A bit about my background: I haven't done much web development for a while, and am only recently starting to get back in the swing of things. I remember the days when I used to have static header/footer files in PHP, and code like so:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Title&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?php include("header.php") ?&gt;
  Body text here
  &lt;?php include("footer.php") ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm currently making the switch to <strong>Node for my backend</strong> (for various reasons not pertinent to this post). I'm still quite new at this, so I'm wondering if there is a simple way to go about having static headers/footers (which contains navbars and such) for my front end. I'm trying to use <strong>Bootstrap</strong> for my front end framework. </p>
  
  <p>I think using Jade, or other template engines, might be one way to go about doing this, though I'm not necessarily sure if I want to use Jade just yet as dealing with js and HTML is troublesome enough without adding another pseudo-language/format/template into the mix. <strong>So I'm wondering if there is a solution that does <em>not</em> use template engines.</strong></p>
  
  <p>Here's what I currently have for my app.js/web.js file:</p>
  
  <pre><code>var express = require('express')
  var app = express()
  var path = require('path')
  var fs = require('fs');
  
  var bodyparser = require('body-parser')
  app.use(bodyparser.urlencoded({extended: false}))
  
  app.use(express.static(path.join(__dirname)));
  
  app.get('/submit', function(req,res) {  
      [functions omitted for brevity]
  })
  
  [other processes omitted for brevity]
  
  app.listen(8080)
  </code></pre>
  
  <p>Thank you!</p>