album/templates/index.rs.html
2018-03-03 14:39:33 +01:00

13 lines
349 B
HTML

@use models::Coord;
@use nickel::Request;
@use server::{Link, PhotoLink};
@use templates::{data_positions, page_base, photo_link};
@(req: &Request, title: &str, lpath: &[Link], photos: &[PhotoLink], coords: &[Coord])
@:page_base(req, title, lpath, {
<div class="group"@:data_positions(coords)>
@for p in photos {@:photo_link(p)}
</div>
})