Introduction
An anzii framework plugin that shows how to create anzii plugins.
Installation
npm install --save anzii-hello-example
Usage
```js
const anzii = require('anzii')
const Hello = require('anzii-hello-example') // require anzii-hello-example
anzii({Hello}) // pass it to anzii() method
```
Example Plugin Hello
{ thispao = pao // Every plugin is passed this object } { this // Call listens() method (available to every anzii plugin) to set events that this module listens to }// Define the required init() method { const self = this selfcallback = datacallback const payload = data const user = payload const namesurname = user // assume name to be "Ntsako" and surname to be "Mashele" const message = `Hello , I'm happy to meet you.'` return self }// This method is called whenever handle-hello-event is emitted
Navigate to http://localhost:3000/hello/ntsako/mashele and you should see the text Hello Ntsako Mashele, I'm happy to meet you on your browser.
Please note: The Ntsako and Mashele parameteres used above are optional, use your own parameteres