yoshuawuyts / barracks

:mountain_railway: action dispatcher for unidirectional data flows
MIT License
177 stars 22 forks source link

this.locals for passing data around #8

Closed yoshuawuyts closed 10 years ago

yoshuawuyts commented 10 years ago

sometimes you want to delegate to a get function that returns data. Because we're using async.series with a shared context between applications we need to be able to pass arguments between the calls. E.g. myData_get is dependent on user_getToken before being able to proceed. These relationships should be possible without passing data around through callbacks.