div 0.4.0

Ad hoc HTML for Rust Web Apps.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
 * DIV-RS
 * Contains JS functions intended for usage within JS.
 * From the Rust side, there should no need to call JS code directly
 * when working with div.
 */

export function init_div_rs() {
    window.__div_rs = window.__div_rs || { svcom: {}, loaded: 0 };
}
export function register_svelte_component(name, component) {
    window.__div_rs.svcom[name] = component;
}