1
0
mirror of https://github.com/actix/examples synced 2024-11-25 07:12:42 +01:00
examples/template_yarte/templates/body.hbs

11 lines
194 B
Handlebars
Raw Normal View History

2019-11-19 10:56:19 +01:00
<body>
{{~#if let Some(name) = query.get("name") }}
{{ let lastname = query.get("lastname").ok_or(yarte::Error)? }}
{{> card/hi ~}}
{{ else ~}}
{{> card/form ~}}
{{/if ~}}
</body>