1
0
mirror of https://github.com/actix/examples synced 2024-12-05 03:01:55 +01:00
examples/template_yarte/templates/index.hbs

9 lines
245 B
Handlebars

{{#> base title = "Actix web" }}
{{~#if let Some(name) = query.get("name") }}
{{ let lastname = query.get("lastname").ok_or(yarte::Error)? }}
{{> card/hi ~}}
{{ else ~}}
{{> card/form ~}}
{{/if ~}}
{{/base }}