1
0
mirror of https://github.com/actix/examples synced 2024-11-30 17:14:35 +01:00
examples/template_yarte/templates/index.hbs
Juan Aguilar Santillana 8646a89249 Update yarte to 0.2
2019-04-01 01:23:31 +02:00

13 lines
293 B
Handlebars

{{! Simple example !}}
{{> doc/t ~}}
<html>
{{~> doc/head title = "Actix web" ~}}
<body>
{{~#if let Some(name) = query.get("name") }}
{{ let lastname = query.get("lastname").ok_or(yarte::Error)? }}
{{> card/hi ~}}
{{ else ~}}
{{> card/form ~}}
{{/if ~}}
</body></html>