Skip to content

Instantly share code, notes, and snippets.

@drwasho
Created February 17, 2017 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drwasho/6dd4f9ed6b5cdf96e62fd3b3083f596e to your computer and use it in GitHub Desktop.
Save drwasho/6dd4f9ed6b5cdf96e62fd3b3083f596e to your computer and use it in GitHub Desktop.
{
"$jason":{
"head":{
"templates":{
"body":{
"sections":[
{
"items":{
"{{#each $jason.pokemons}}":{
"type":"horizontal",
"components":[
{
"type":"image",
"style":{
"width":"60"
},
"url":"{{url}}"
},
{
"type":"label",
"text":"{{name}}"
}
]
}
}
}
]
}
},
"actions":{
"$load":{
"type":"$network.request",
"options":{
"url":"http://jsonfm.herokuapp.com/folders/18.json"
},
"success":{
"type":"$require",
"options":{
"pokemons":{
"{{#each $jason.items}}":"{{url}}"
}
},
"success":{
"type":"$render"
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment