The Directive Unit


exports:  class DirectiveUnit

class DirectiveUnit

Executes an arbitrary function. This is designed to replace the FlitterApp unit.


type:  function

This is the function that will be executed when this unit is initialized.

constructor(function func)

returns:  this

Initializes the class. Stores the specified func in this.func.

go(express app, function next)

returns:  undefined

Executes this.func and passes an exit function so it can end the process. Does NOT call the next function in the stack. This ends Flitter's execution stack.

No Comments
Back to top