Modules
Here's a basic model of what a module is
category
Should be in lowercase with '-' instead of spaces
layout
A list of Layout elements, the
Submitwill trigger thesubmitfunction with his type (heresay)
submit(type, data)
typeis the type of the submitter
dataa dict with all the contents of the inputs, the key is the ID of the element
It returns a dict with each content to change, element ID and value. There are no timeouts
Client side
By adding a script attribute to CustomModule you can make your module client side.
You will have to make it in JavaScript, the type and data are already initialized, no need to create a function
Module RegEx
With the regex you can specify an expression for the module and not only to an input.
It can be usefull if the user want to know the type of string he's searching.
For more info about RegEx see RegEx
Streaming response
I you need modify multiple times your response, for exemple with CLI, you can use yield instead of return
Page is currently in work in progress