album/templates/places.rs.html
Rasmus Kaj 5c03a28f59 Use warp instead of nickel.
Use the modern async warp web framework instead of nickel (which is
starting to feel a bit stale).

Url routing and context passing is changed a lot.
2019-04-22 16:08:19 +02:00

13 lines
277 B
HTML

@use super::page_base;
@use crate::models::Place;
@use crate::server::Context;
@(context: &Context, places: &[Place])
@:page_base(context, "Photo places", &[], {}, {
<ul class="allplaces">
@for p in places {
<li><a href="/place/@p.slug">@p.place_name</a>
}</ul>
})