---
layout: page
---
<div id="mw-container">
  <div id="mw-list">
    {% if page.title contains 'middleware' %}
      {% capture readme %}{% include mw-list.md %}{% endcapture %}
    {% else %}
      {% capture readme %}{% include util-list.md %}{% endcapture %}
    {% endif %}
    {{ readme | markdownify }}
  </div>
  <div id="middleware-content">
    {% if page.module == 'mw-home' %}    
      {{content}} 
      
    {% elsif page.module %}
      {% capture note-middleware %}
        This page was generated from the <a target="_blank" href="https://github.com/expressjs/{{page.module}}">{{page.module}} README</a>.
      {% endcapture %}

      {% include admonitions/note.html content=note-middleware %}

      {% capture included-readme %}{% include readmes/{{page.module}}.md %}{% endcapture %}
      
      {{ included-readme | markdownify }}

    {% else %}
      <h3>ERROR: No source specified for README {{page.module}}</h3>
    {% endif %}

  </div>
</div>
