* scripting enhancements * tests * cleanup / tests * new docs wip * add more docs * more updates * add caching docs * add sse docs * more docs * sidebar, and fix navigation blocks * remove old docs * set proper meta * fixes
26 lines
542 B
Go
26 lines
542 B
Go
package pages
|
|
|
|
import (
|
|
"github.com/maddalax/htmgo/framework/h"
|
|
"htmgo-site/pages/base"
|
|
"htmgo-site/partials"
|
|
)
|
|
|
|
func HtmlToGoPage(ctx *h.RequestContext) *h.Page {
|
|
return base.PageWithNav(
|
|
ctx,
|
|
h.Div(
|
|
h.Class("flex flex-col h-screen items-center justify-center w-full pt-6"),
|
|
h.H3(
|
|
h.Text("Convert raw html to htmgo code"),
|
|
h.Class("text-2xl font-bold"),
|
|
),
|
|
h.Div(
|
|
h.Class("h-full w-full flex gap-4 p-8"),
|
|
partials.HtmlInput(),
|
|
partials.HiddenCopyOutput(""),
|
|
partials.GoOutput(""),
|
|
),
|
|
),
|
|
)
|
|
}
|