mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
restructure folders
This commit is contained in:
10
templating/handlebars/static/templates/error.html
Normal file
10
templating/handlebars/static/templates/error.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{{error}}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{status_code}} {{error}}</h1>
|
||||
</body>
|
||||
</html>
|
12
templating/handlebars/static/templates/index.html
Normal file
12
templating/handlebars/static/templates/index.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>{{name}} Example</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>{{name}} example</h1>
|
||||
<p>This is an example of how to use {{name}} with Actix-Web.</p>
|
||||
</body>
|
||||
</html>
|
12
templating/handlebars/static/templates/user.html
Normal file
12
templating/handlebars/static/templates/user.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>{{user}}'s homepage</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Welcome back, {{user}}</h1>
|
||||
<p>Here's your {{data}}.</p>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user