Created
March 25, 2014 01:21
-
-
Save ryonakae/3054c717f2dd360ffa6f to your computer and use it in GitHub Desktop.
Middleman + SlimでネストされたYAMLのデータを取得する
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
ul | |
- data.test.items.each do |item| | |
li | |
= item.name | |
ul | |
- item.subitems.each do |subitem| | |
li = subitem.subname |
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
items: | |
- name: hoge | |
subitems: | |
- subname: a | |
- subname: b | |
- name: hoge2 | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment