Implement Task Runner for File Model #388

Closed
balupton opened this Issue Jan 2, 2013 · 1 comment

Comments

Projects
None yet
1 participant
Owner

balupton commented Jan 2, 2013

Currently we have to do this to perform multiple actions on a file cleanly:

# Load and Render a Document
# next(err,document)
loadAndRenderDocument: (document,opts,next) ->
    balUtil.flow(
        object: document
        action: 'load contextualize render'
        args: [opts]
        next: (err) ->
            result = document.getOutContent()
            return next(err,result,document)
    )
    @

When really we should be able to do something like:

document.load().contextualize().render()

Value needs to be proven. @ashnur, how would we accomplish this with your promises stuff?

Owner

balupton commented Nov 28, 2013

Implemented in v6.55.0

balupton closed this Nov 28, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment