Last active
August 29, 2015 14:22
-
-
Save wircho/26cf0e20c63a40d2b41e to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"title": "Watch Cities", | |
"icon_url": "http://relevant.ai/cities.png", | |
"summary": "Card's summary for the library.", | |
"credits": "The Web", | |
"settings_type": "NONE", | |
"_LOAD": { | |
"json_info":{ | |
"_URL":"https://gist.githubusercontent.com/wircho/d6c606350f8a6dca29ee/raw/b7872ecebfcc868ff825c88fe1c5e06d13ad618c/cities" | |
}, | |
"cities_array":{"_PATH":["json_info","cities"]}, | |
"_RETURN":{ | |
"_LOOP":{ | |
"_ARRAY":"{cities_array}", | |
"_EACH":[ | |
{ | |
"watch":{ | |
"template":"1", | |
"description-text":{"_PATH":["_ITEM","nickname"]}, | |
"footer-text":{"_PATH":["_ITEM","name"]}, | |
"image":{"_PATH":["_ITEM","picture"]} | |
} | |
}, | |
{ | |
"_IF":{"_EQUAL":["{_INDEX}",0]}, | |
"_THEN":{ | |
"watch-home":{ | |
"description-text":[{"_COUNT":"{cities_array}"}," cities available"], | |
"footer-text":["First city: ",{"_PATH":["_ITEM","name"]}] | |
} | |
} | |
} | |
] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment