6 lines
180 B
HTML
6 lines
180 B
HTML
@use crate::models::Coord;
|
|
|
|
@(coords: &[(Coord, i32)])
|
|
@if let Some(((c, p), rest)) = coords.split_first()
|
|
{ data-positions="[[@c.x,@c.y,@p]@for (c,p) in rest {,[@c.x,@c.y,@p]}]"}
|