~repos /gromer

#golang#htmx#ssr

git clone https://pyrossh.dev/repos/gromer.git

gromer is a framework and cli to build multipage web apps in golang using htmx and alpinejs.


f81d7b56 pyros2097

tag: v0.0.7

v0.0.7

5 years ago
filter css in server also
Files changed (1) hide show
  1. cli/main.go +2 -1
cli/main.go CHANGED
@@ -236,6 +236,7 @@ func load(wd, file, soPath string) {
236
236
  func createPage(ui app.UI, wasmPath string) *bytes.Buffer {
237
237
  page := bytes.NewBuffer(nil)
238
238
  page.WriteString("<!DOCTYPE html>\n")
239
+ elems := app.FilterUIElems(ui)
239
240
  app.Html(
240
241
  app.Head(
241
242
  app.Title("Title"),
@@ -249,7 +250,7 @@ func createPage(ui app.UI, wasmPath string) *bytes.Buffer {
249
250
  app.Link("manifest", "manifest"),
250
251
  app.Script(wasmExecJs(wasmPath)),
251
252
  ),
252
- app.Body(ui),
253
+ app.Body(elems[0]),
253
254
  ).Html(page)
254
255
  return page
255
256
  }