1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +01:00
examples/template_engines/yarte/templates/index.hbs

9 lines
251 B
Handlebars
Raw Normal View History

{{#> 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 }}