mirror of
https://github.com/actix/examples
synced 2024-11-30 17:14:35 +01:00
23 lines
442 B
Handlebars
23 lines
442 B
Handlebars
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<title>Actix web</title>
|
|
</head>
|
|
<body>
|
|
{{~#if let Some(name) = query.get("name") ~}}
|
|
<h1>Hi, {{ name }}!</h1>
|
|
{{~> alias/welcome tag='p' ~}}
|
|
{{~ else ~}}
|
|
{{~> alias/welcome tag="h1" ~}}
|
|
<p>
|
|
<h3>What is your name?</h3>
|
|
<form>
|
|
<input type="text" name="name"/><br/>
|
|
<p><input type="submit"></p>
|
|
</form>
|
|
</p>
|
|
{{~/if~}}
|
|
</body>
|
|
</html>
|