0.0.5 • Published 9 months ago
vorth v0.0.5
- this is a placeholder for client side router & renderer library made using virst
Lifecycle
; - until later stable release of vorth, the documentation will be minimal;
- Vorth window object initialization
- use this as the type definition
/**
* @type {register}
*/
const vorth = window['vorthJS'];
/**
* @typedef {Record<string, string>} Data
* @typedef {(registerOptions:registerOptions)=>void} register
* @typedef {Object} registerOptions
* @property {(attributeValue:string)=>string} options.pathRule
* @property {()=>Promise<void>} [options.onRouteChange]
* - modify fetch end point from `v-path`;
* @property {Record<string, ()=>Promise<void>>} [options.triggers]
* @property {Record<string, ()=>Promise<{template:string, Data:Data}>>} [options.callbacks]
*/
- donwload "/build/index.mjs" and load it on your all of your
*.html
files;
*