mirror of
https://github.com/joerdav/go-htmx-examples.git
synced 2026-03-21 22:35:08 +00:00
chore: click to edit
This commit is contained in:
@@ -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... }
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user