chore: click to edit

This commit is contained in:
joerdav
2023-05-02 14:52:29 +01:00
parent c22ab0a793
commit e6b99f5420
5 changed files with 5 additions and 13 deletions

View File

@@ -29,7 +29,7 @@ templ Layout(title string) {
</style>
}
</head>
<body hx-boost="true">
<body>
@Nav()
<div id="content" class="container p-5 content">
{ children... }

View File

@@ -169,16 +169,7 @@ if err != nil {
return err
}
// Element (standard)
_, err = templBuffer.WriteString("<body")
if err != nil {
return err
}
// Element Attributes
_, err = templBuffer.WriteString(" hx-boost=\"true\"")
if err != nil {
return err
}
_, err = templBuffer.WriteString(">")
_, err = templBuffer.WriteString("<body>")
if err != nil {
return err
}