Created
July 30, 2017 00:31
-
-
Save maks/e6bc3d98ed624966f7b197908486c2d1 to your computer and use it in GitHub Desktop.
jasonette map 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
| actions: | |
| ========= | |
| "fetch" : { | |
| "type" : "$require", | |
| "options" : { | |
| "stops" : "http://10.0.2.2:8080/fake_stops.json" | |
| }, | |
| "success" : { | |
| "type" : "$global.set", | |
| "options" : { | |
| "pins" : "{{ $jason.stops }}" | |
| }, | |
| "success" : { | |
| "type": "$render" | |
| } | |
| } | |
| }, | |
| eg. data: | |
| ========= | |
| [ | |
| { | |
| "coord" : "-37.907404, 145.069975", | |
| "title" : "Oasis Bakery", | |
| "description" : "Awesome Middle Eastern food, sweets, coffees and groceries." | |
| }, | |
| { | |
| "coord" : "-37.907274, 145.068395", | |
| "title" : "Some other place", | |
| "description" : "Bad coffee, no cakes." | |
| }, | |
| { | |
| "coord" : "-37.906622, 145.070755", | |
| "title" : "Another place", | |
| "description" : "Bread and water only." | |
| } | |
| ] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment