UNPKG

@luketclancy/otterly

Version:

A javascript front end framework, Inspired by stimulus js. Like an otter its small, fast and versatile. Based around logical units attached to html nodes. Great for a backend-first approach to website creation.

21 lines 515 B
import Generic from './generic.js' export default { unitName: "Debug", unitRemoved(){ console.log('unitRemoved') }, unitConnected(){ console.log('unitConnected') }, addUnitEvent(...args){ Generic.addUnitEvent(...args) console.log('ran addUnitEvent. unitEvents:', this.unitEvents, 'args:', ...args) }, removeUnitEvent(...args){ Generic.removeUnitEvent(...args) console.log('ran removeUnitEvent. unitEvents:', this.unitEvents, 'args:', ...args) }, log(...args){ console.log(this, ...args) } }