senu 0.2.0

Declare a Rust function once and serve it as a web page, a JSON API and an MCP tool, with one permission check and one contract test suite
Documentation
<%# Project list page. Askama HTML-encodes every expression in this file. The classes are Tailwind CSS utilities; run `npm run css` after changing them. %>
<%! extends "serve_base.html" %>
<%! block title %>Projects<%! endblock %>
<%! block heading %><h1>Projects</h1><%! endblock %>
<%! block main -%>
<form method="get" action="/projects" role="search" class="my-4 flex flex-wrap items-center gap-2">
<label for="q">Search projects by name</label>
<input id="q" name="q" type="search" value="<%= q %>" class="rounded border border-gray-500 px-2 py-1">
<button type="submit" class="rounded border border-gray-500 bg-gray-100 px-3 py-1 hover:bg-gray-200">Search</button>
</form>
<%! if projects.is_empty() %>
<p>No projects match.</p>
<%! else %>
<ul>
<%! for p in projects %>
<li data-project-id="<%= p.id %>"><%= p.name %></li>
<%! endfor %>
</ul>
<%! endif %>
<%!- endblock %>