lapis
lapis copied to clipboard
'flow' not found in documentation search
I see that 1.5.0 includes "Add flow method to request object for invoking flows", but searching to flow using the search field does not bring anything up.
Yeah,
Currently an undocumented feature as I'm getting comfortable with the API. You can see some examples here: https://github.com/leafo/lapis/blob/master/spec/flow_spec.moon
What are these intended to be used for? Any progress on the idea?
I use them all the time, just haven't written documentation for it.
Here's a flow in streak club: https://github.com/leafo/streak.club/blob/master/flows/edit_streak.moon
Here's how it's called: https://github.com/leafo/streak.club/blob/master/applications/streaks.moon#L37
It's a method for keeping your applications small. All the code goes into the flow, and then the application can call high level methods on the flow.
The flow proxys to a request object, but can have it's own instance state.
Hmm.. I'm having a hard time understanding it, but I think it's just one of those things, I'm not all that familiar with it, so I'll get it with time. Thanks though! I understand it at least a little more.
How i can use flows in "lua mode" ?