lapis icon indicating copy to clipboard operation
lapis copied to clipboard

'flow' not found in documentation search

Open vadi2 opened this issue 9 years ago • 5 comments

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.

vadi2 avatar Mar 28 '16 05:03 vadi2

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

leafo avatar Mar 28 '16 18:03 leafo

What are these intended to be used for? Any progress on the idea?

TangentFoxy avatar Jul 20 '16 04:07 TangentFoxy

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.

leafo avatar Jul 20 '16 18:07 leafo

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.

TangentFoxy avatar Jul 20 '16 20:07 TangentFoxy

How i can use flows in "lua mode" ?

CriztianiX avatar Aug 17 '16 12:08 CriztianiX