title: How to include CSS files in Express.js views when not using a template engine?
body: <p>I'm trying to create an Express application. My limitations are that I cannot use any template engine for rendering HTML. There are (at least) two problems:</p>
  
  <ol>
  <li>One of the problems that I foresee is how will I manage to manipulate the data based on what I need to show to the user. E.g. I have a transactions table in my database and I need to display an HTML table of all those transactions. The traditional way that I'm used is to utilize a template engine, where I can put a for loop that goes through the records.</li>
  <li>I'm sending an HTML file when I call a specific route, but it cannot get the CSS files from another folder.</li>
  </ol>
  
  <p>For problem 2. I've tried:
     <pre> app.get('/transactions', (req, res) =>
      res.sendFile(path.join(__dirname+'/public/assets/html/transactions.html')))</pre></p>
  
  <p>and then in transactions.html I have <pre>&lt;link rel="stylesheet" href="../stylesheets/shared/constants.css"&gt;</pre> and other links to stylesheets.</p>
  
  <p>When the page is displayed, it doesn't apply any of the styles. When I checked the source code in the browser, and I click the link for constants.css it shows the message: <pre>Cannot GET /stylesheets/shared/constants.css</pre></p>
  
  <p>This doesn't seem like the right logic. What things should be changed?</p>