'created smparkinVaporWeb from template https://github.com/vapor/web-template'
This commit is contained in:
10
Resources/Views/base.leaf
Normal file
10
Resources/Views/base.leaf
Normal 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>
|
||||
7
Resources/Views/hello.leaf
Normal file
7
Resources/Views/hello.leaf
Normal file
@@ -0,0 +1,7 @@
|
||||
#set("title") { Hello, #(name)! }
|
||||
|
||||
#set("body") {
|
||||
<h1>Hello, #(name)!</h1>
|
||||
}
|
||||
|
||||
#embed("base")
|
||||
9
Resources/Views/welcome.leaf
Normal file
9
Resources/Views/welcome.leaf
Normal file
@@ -0,0 +1,9 @@
|
||||
#set("title") { It works }
|
||||
|
||||
#set("body") {
|
||||
<div class="welcome">
|
||||
<img src="/images/it-works.png">
|
||||
</div>
|
||||
}
|
||||
|
||||
#embed("base")
|
||||
Reference in New Issue
Block a user