Modify Model On Event
The reactive feature for Modstache is one way, meaning that UI elements are modified when the data is changed. It is possible to modify the model data by tying an event, such as onchange, to a model member. This can be handled in the stach attribute by assigning the event to a property/data pairing using '>' as a separator.
This HTML will modify the message property of the data when the input text is changed:
<input {}="onchange:value>message" />
You can also assign the property or attribute to a function in the model. The function will be passed the property value and the Modstache context.