1
0
mirror of https://github.com/actix/examples synced 2024-12-18 16:23:12 +01:00
examples/template_yarte/templates/index.hbs

13 lines
293 B
Handlebars
Raw Normal View History

2019-04-01 01:23:31 +02:00
{{! Simple example !}}
{{> doc/t ~}}
2019-03-12 21:15:53 +01:00
<html>
2019-04-01 01:23:31 +02:00
{{~> doc/head title = "Actix web" ~}}
2019-03-12 21:15:53 +01:00
<body>
2019-04-01 01:23:31 +02:00
{{~#if let Some(name) = query.get("name") }}
{{ let lastname = query.get("lastname").ok_or(yarte::Error)? }}
{{> card/hi ~}}
{{ else ~}}
{{> card/form ~}}
{{/if ~}}
</body></html>