renaissance
Structure your apps
Originally inspired by twitter's flightjs.
Usage
For an example on how renaissance components, adapters and plugins work together you can have a look at the renaissance-demo repo.
API
r.registerAdapter({string} name, {constructor} Adapter)
make an adapter available to renaissance
r.registerPlugin({string} name, {constructor} Plugin)
make a plugin available to renaissance
r.registerMixin({string} name, {constructor} Component, {function} callback)
make a mixin available to given component constructor and thus to all instances of the component
r.Component
base component class which you can derive all your components from
r.Component.trigger({string} event, {*} data)
trigger a registered event
r.Component.before({string} event, {function} callback)
register a callback on the before handler of an event
r.Component.on({string} event, {function} callback)
register a callback directly on the event
r.Component.after({string} event, {function} callback)
register a callback on the after handler of an event
r.Component.onInit()
with this method you can call the handler for the init
-method
Contributing
See CONTRIBUTING
Credits
See CREDITS
License
MIT (c) 2016 - 2022 frncsdrk and contributors