allowthem-server 0.0.6

HTTP server and middleware for allowthem
Documentation
{# _modeline.html — modeline + minibuffer footer.
   Replaces the old _status_bar.html + _mode_toggle.html.

   Expected context (all optional):
     - status_env     : string (defaults to "DEV")
     - status_session : string (defaults to "ANON")
#}
<div class="wf-modeline" role="status" aria-label="Modeline">
  <span class="wf-ml-seg wf-ml-chevron">AT</span>
  <span class="wf-ml-seg">{{ status_env | default("DEV") }}</span>
  <span class="wf-ml-fill" aria-hidden="true"></span>
  <span id="wf-screen-label" class="wf-ml-seg"></span>
  {% set session_label = (shell.status_session if shell is defined and shell.status_session) or status_session %}
  {% if session_label %}
    <span class="wf-ml-seg">{{ session_label }}</span>
    <a class="wf-ml-seg" href="/logout" title="Sign out" style="text-decoration:none;color:inherit;cursor:pointer"></a>
  {% else %}
    <span class="wf-ml-seg">ANON</span>
  {% endif %}
  <span class="wf-ml-seg"
        data-mode-toggle
        title="Toggle color mode"
        aria-label="Toggle color mode"
        tabindex="0"
        role="button">
    <span class="wf-kbd">m</span>
  </span>
</div>
<div class="wf-minibuffer" role="log" aria-live="polite" aria-label="Echo area">
  <span class="wf-minibuffer-prompt">λ</span>
  <span class="wf-minibuffer-msg" id="mb-msg"></span>
  <span class="wf-minibuffer-time" id="mb-time"></span>
  <div class="wf-minibuffer-history" id="mb-history" aria-hidden="true">
    <div class="row is-empty"><span class="msg">No messages yet.</span></div>
  </div>
</div>
<script>document.addEventListener("DOMContentLoaded",function(){if(window.wfEcho)wfEcho("Ready.",{kind:"ok"})});</script>