'created smparkinVaporWeb from template https://github.com/vapor/web-template'

This commit is contained in:
Stephen
2019-10-31 16:50:33 -07:00
commit 931b897f65
22 changed files with 436 additions and 0 deletions

10
Resources/Views/base.leaf Normal file
View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<title>#get(title)</title>
<link rel="stylesheet" href="/styles/app.css">
</head>
<body>
#get(body)
</body>
</html>

View File

@@ -0,0 +1,7 @@
#set("title") { Hello, #(name)! }
#set("body") {
<h1>Hello, #(name)!</h1>
}
#embed("base")

View File

@@ -0,0 +1,9 @@
#set("title") { It works }
#set("body") {
<div class="welcome">
<img src="/images/it-works.png">
</div>
}
#embed("base")