companyzero / bisonrelay

ISC License
31 stars 13 forks source link

clients: support async page fetching #614

Open miki-totefu opened 2 months ago

miki-totefu commented 2 months ago

An async fetch replaces a section of the page with content without full page reload. Example syntax:

--form-- type="action" value="/remote/resource" type="submit" label="Submit Invoice" type="asynctarget" value="section_one" --/form--

--section id=section_one -- --/section--

When the form is submitted, brclient/bruig fetches the contents of /remote/resource, then replaces everything inside #section_one with it.

Sections and forms should not be nested (that is unsupported).