Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to weld nested arrays? #38

Closed
dsego opened this issue Oct 28, 2011 · 1 comment
Closed

Is it possible to weld nested arrays? #38

dsego opened this issue Oct 28, 2011 · 1 comment

Comments

@dsego
Copy link

dsego commented Oct 28, 2011

I would like to have a nested structure which repeats containers (e.g. months) and nests other items inside (e.g. activities).
I've been playing with the code but haven't figured out how to do this. Is this possible. Is this a valid case or is there perhaps a better way to achieve the same result?

[{'month' : 'May', 'activities' : [{'name' : 'A'}] },
 {'month' : 'June', 'activities' : [{'name' : 'B'}, {'name' : 'C'}] },
 {'month' : 'July', 'activities' : [{'name' : 'D'}, {'name' : 'E'}] }]
<div class="month">
  <div class="name">Dummy Activity 1</div>
  <div class="name">Dummy Activity 2</div>
  <div class="name">Dummy Activity 3</div>
</div>
<div class="month">
  <div class="name">Dummy Activity 4</div>
</div>
@dsego
Copy link
Author

dsego commented Oct 28, 2011

I think I found the solution to this. Maybe you could add it as an example.

  <div class="month">   
  <div class="activities">
  <div class="name">Dummy Activity</div>
  </div>
</div>

@dsego dsego closed this as completed Oct 28, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant