1
0
mirror of https://github.com/actix/examples synced 2024-12-18 08:23:10 +01:00
examples/templating/yarte/templates/index.hbs

9 lines
251 B
Handlebars
Raw Normal View History

2022-02-06 09:25:38 +01:00
{{#> base title = "Actix Web" }}
{{~#if let Some(name) = query.get("name") }}
{{ let lastname = query.get("lastname").ok_or(MyErr("Bad query"))? }}
{{> card/hi ~}}
{{ else ~}}
{{> card/form ~}}
{{/if ~}}
{{/base }}