1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +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>