1
0
mirror of https://github.com/actix/examples synced 2024-11-28 00:12:57 +01:00
examples/template_yarte/templates/body.hbs
2019-11-19 18:56:19 +09:00

11 lines
194 B
Handlebars

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