The Infusion Framework is designed to minimize the amount of actual code you have to write. Most of your component definitions will be declarative, in the form of JSON blocks defining
- defaults for your components, and
- specific demands for particular contexts.
These declarative blocks should be used to do almost everything, including
- defining relationships between components
- attaching methods to components
- firing events
The small amount of code you will write should be in free functions that will be referenced by the defaults and demands.