Skip to content

Instantly share code, notes, and snippets.

@nyaahara
Created December 14, 2014 09:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nyaahara/096840291a54c1ea6a71 to your computer and use it in GitHub Desktop.
Ractive.jsでループする(haml)
{{#each list:num}}
# num:indexが付けられます。
%div {{num}}
# JSONデータのリストである場合、name属性の値を拾えます。
%div {{name}}
{{/each}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment