User interactions with soma-template
| 1 min read
As a reminder, soma-template is a DOM-based web template engine that will help you insert content in html pages with native DOM manipulation.
Events have been added to soma-template. You can now easily add user events to elements, such as click, mouse over, key press, mouse down, drag, and so on. The functions called can also received parameters from the current set of data. This allow the event handlers to receive targeted data without searching for its reference, which might greatly reduce the amount of code needed.
The site has been updated, see the events documentation and the full list of events.
The events have been used in the todo demo, the events demo and the people demo.
And here is a video showing the events in action.