Peradventure/views/index.etlua
2024-03-16 20:32:35 -05:00

30 lines
623 B
Plaintext

<!-- views/index.etlua -->
<script src="/static/htmx.min.js"></script>
<h1>Hello world</h1>
<p>Welcome to my page</p>
<p>The missile guidance system works as follows</p>
<form>
<fieldset>
<legend>Give Us Money</legend>
<input type="file"></input>
<input type="text"></input>
</fieldset>
<fieldset>
<label>Do it</label>
<input type="number"></input>
</fieldset>
</form>
<br>
<button hx-post="/clickme" hx-target="#clickable">Click me</button>
<p id="clickable"></p>
<ol>
<p><% for i, thing in pairs(text) do %>
<li><%= thing %></li>
<% end %>
</p>
</ol>