Forms, fields and links

A field is declared inline:

print("`B333`<32|username`>`b") empty print("`B333`<40|city`Berlin>`b") pre-filled print("`B333`<!32|password`>`b") masked

The value arrives at the next page as field_username, and so on.

A link may carry data. Everything after the second backtick is a pipe-separated field list:

`[Save`:/page/thing.mu`action=save|id=7|session=abc|*]

Entries with an equals sign arrive as var_*. Bare names name a field on the current page to submit. A lone asterisk means "submit every field on this page".

Three rules that are not optional:

- A field's pre-filled value cannot contain a newline. The parser reads it from the backtick that ends the field name to the next '>', so a stored newline makes the field unrepresentable and the whole field is silently dropped. Edit multi-line text one field per line and rejoin on save.

- A ']' inside a link label ends the link early and dumps the rest of the markup into the page as visible text. Titles built from data must have brackets stripped before they go in a label.

- A '>' inside a pre-filled value truncates the field for the same reason.

None of these announce themselves. They produce a page that looks nearly right and quietly loses data.

Web edition of Taskerville, a NomadNet node on the Reticulum mesh, built to keep working over radio when the internet does not. Node address 27cfd74b0a14e7d4f327a9de26d0e8cc.

----------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------
A BMRL Project
27cfd74b0a14e7d4f327a9de26d0e8cc
[0] bmrl* "~/changelog"