You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lexonomy_custom_editor/src/lib/snabbdom.py

20 lines
814 B

__pragma__ ('noanno')
__pragma__ ('js', """
var snabbdom = require('snabbdom');
var s_patch = snabbdom.init([ // Init patch function with chosen modules
require('snabbdom/modules/class').default, // makes it easy to toggle classes
require('snabbdom/modules/props').default, // for setting properties on DOM elements
require('snabbdom/modules/attributes').default, // for setting attributes on Html tags
require('snabbdom/modules/style').default, // handles styling on elements with support for animations
require('snabbdom/modules/dataset').default, // adding dataset attributes
require('snabbdom/modules/eventlisteners').default, // attaches event listeners
]);
var s_h = require('snabbdom/h').default; // helper function for creating vnodes
""", None)
# export the symbols
h = s_h
patch = s_patch