Created
May 27, 2014 08:47
-
-
Save apla/99ea2ef8f8704733ff69 to your computer and use it in GitHub Desktop.
dataflows example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"path": "post", | |
"tasks": [{}] | |
}, { | |
"path": "upload" | |
}, { | |
"path": "presenters", | |
"flows": [{ | |
"path": "json", | |
"data": { | |
"title": "title for presenter", | |
"description": "description for presenter" | |
}, | |
"presenter": { | |
"type": "json", | |
"dump": true | |
} | |
}, { | |
"path": "ejs", | |
"data": { | |
"title": "title for presenter", | |
"description": "description for presenter" | |
}, | |
"presenter": { | |
"file": "index.ejs", | |
"vars":{ | |
"type": "ejs", | |
"title": "{$title}", | |
"description": "{$description}", | |
"note": "all those keys must be declared or you must EXPLICITLY declare `dump` option" | |
} | |
}, | |
"note" : "presenter type assumed from file extension", | |
"note2": "presenter file location relative to the share/presentation within project root", | |
"note3": "or defined in project config key `templateDir`" | |
}, { | |
"path": "hogan", | |
"data": { | |
"title": "title for presenter", | |
"description": "description for presenter" | |
}, | |
"presenter": { | |
"file": "index.hogan", | |
"vars":{ | |
"type": "hogan", | |
"title": "{$title}", | |
"description": "{$description}" | |
} | |
} | |
}, { | |
"path": "handlebars", | |
"data": { | |
"title": "title for presenter", | |
"description": "description for presenter" | |
}, | |
"presenter": { | |
"file": "index.handlebars", | |
"vars":{ | |
"type": "handlebars", | |
"title": "{$title}", | |
"description": "{$description}" | |
} | |
} | |
}] | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to get it working, add such snippet
into flows section of http initiator within project config