Almost working
This commit is contained in:
7
app/templates/home.templ
Normal file
7
app/templates/home.templ
Normal file
@ -0,0 +1,7 @@
|
||||
package templates
|
||||
|
||||
templ Home(name string) {
|
||||
@baseLayout() {
|
||||
<div>Hello, { name }</div>
|
||||
}
|
||||
}
|
||||
15
app/templates/layout.templ
Normal file
15
app/templates/layout.templ
Normal file
@ -0,0 +1,15 @@
|
||||
package templates
|
||||
|
||||
templ baseLayout() {
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
{ children... }
|
||||
</body>
|
||||
</html>
|
||||
}
|
||||
Reference in New Issue
Block a user