Skip to content

Instantly share code, notes, and snippets.

@wd15
Forked from tonyfast/requests-plate.yaml
Created March 29, 2015 16:49
Show Gist options
  • Save wd15/64eb71a0cc740302c5a7 to your computer and use it in GitHub Desktop.
Save wd15/64eb71a0cc740302c5a7 to your computer and use it in GitHub Desktop.
display:
- template: :d3templates.gist-list
gist-list:
- append: $div.row
- selectAll: div.col
- requests:
gist.json: https://api.github.com/users/wd15/gists
call:
- data: :d3.requests.gist
- call:
- enter:
- append: $div.col.s12.m6
- each:
- template: :d3templates.card
card-title:
- call:
- append: $span.card-title
- append: a
- call:
- text: '@description'
- attr:
href: '@html_url'
- call:
- append: p
card-content:
- append: $div.card-content.white-text
- call:
- template: ':d3templates.card-title'
card-action:
- append: $div.card-action
- selectAll: a
- data:
- 1
- 2
- call:
- enter:
- append: a
- each:
- text: ':'
- attr:
href: ':'
card:
- append: $div.card.blue.darken-1
- call:
- call:
- template: :d3templates.card-content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment