{% extends "base.html" %}
{% block title %}devendra · fragments{% endblock %}
{% block content %}
<h1>Fragments</h1>
<p class="muted">Reusable config under <code>config/include/</code>. A host pulls one in with
<code>include = ["include/<id>.toml"]</code>; the host's own entries override the fragment's.</p>
{% if fragments %}
<ul>
{% for id in fragments %}
<li><a href="/fragments/{{ id }}">{{ id }}</a> <code class="muted">include/{{ id }}.toml</code></li>
{% endfor %}
</ul>
{% else %}
<div class="card muted">No fragments yet. Create one below.</div>
{% endif %}
<h2>New fragment</h2>
<form method="post" action="/fragments" class="card">
<p><label>Fragment id<br><input type="text" name="id" placeholder="nginx" required></label></p>
<p><label>Config (TOML)<br>
<textarea name="toml" spellcheck="false">{{ sample_toml }}</textarea>
</label></p>
<button type="submit">Create</button>
</form>
{% endblock %}
neiam
/devendra
public · Issues · Pulls · Labels · Forks · Compare · Actions failure · Badges · Packages
⭐
Log in to mark this repository.
983 B · text
History
d69022d