album/templates/data_positions.rs.html
2018-07-19 21:17:00 +02:00

6 lines
173 B
HTML

@use 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]}]"}