The blade sword template throws a “second landmark on the same branch” exception for the loop

I have a for loop that I want to include in the template:

table.blade:

#game
    h1= table.name 
        -if( table.playerSitting() )
            a.btn.btn-danger.stand(href="#") Stand
    #table
        -for (var i=0; i<7;i++)
            include 'seat' exposing i

seat.blade:

- id = 'p' + (i+1)
    div(id="#{id}")
        -if (table.hasAt(i))
            p= table.usernameAt(i)
        -else
            -if( !table.playerSitting() )
                a.btn.btn-inverse.sit(href="#", data-key="#{i}") Sit
            -else
                p &nbsp;

When I first load the view, everything draws fine. But if I sit down or stand up or move to another table, I will get this:

Exception from Deps recompute: Error: Can't create second landmark in same branch
    at /home/thomporter/meteor/blackjack/views/table.blade:8:4

 6 |        #table
 7 |            -for (var i=0; i<7;i++)
 8 >                include 'seat' exposing i
 9 |    
10 |    

I believe I can fix this by creating a collection of "places" that stores user IDs and tables, but that seems silly. I am currently using the array property of the players table, index 0-6 for each location ... at least this idea. =)

I should also mention that I replaced seat.blade with:

p hi

and no luck, the same problems.

Any ideas?

Edit
:
0.4.9
0.5.9 (git checkout)
Blade 3.0.3

+5
1

foreach.

foreach ... [ ] - , Blade ( , ). , , DOM , Blade.

Spark - . foreach, .

(, ) foreach . , " " Blade . - № 157.

+3

All Articles