💾 Archived View for jb55.com › ward.asia.wiki.org › transport-forms captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
We've borrowed most of the transporter logic and added it to one special case of the Html plugin: submitting forms.
We now expect form handlers to return new pages in wiki json rather than html. This mimics the protocol used by the Transport plugin. In fact, here we mimic the image transporter by entering the image url rather than dropping an image to discover it. github
See About Html Plugin
Now, can we extend the "transport" practice by offering possibly useful submit handlers as part of the Html plugin itself? We consider a "new page" form to be the test case.
<form action="http://new_page/" style="background-color:#eee; padding:15px;"> <center> Create New Page<br><br> <input name=title size=40 placeholder="New Page Title"> <input type=submit value=create> </center> </form>
We special case one action url and handle it within the plugin without transporting through a remote service.
A simpler and less deceptive action name didn't work for us, possibly due to the sanitizer.
Watch for version 0.3.0.