~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.


74376289 pyros2097

5 years ago
fix cli
cli/{main.go → cli.go} RENAMED
@@ -1,4 +1,4 @@
1
- package main
1
+ package cli
2
2
 
3
3
  import (
4
4
  "bytes"
@@ -335,7 +335,7 @@ func buildAll(basePath string) {
335
335
  loadRoutes(p, basePath, false)
336
336
  }
337
337
 
338
- func watch() {
338
+ func Watch() {
339
339
  wd, err := os.Getwd()
340
340
  if err != nil {
341
341
  fmt.Printf("could not get wd")
@@ -351,7 +351,3 @@ func watch() {
351
351
  buildAll(basePath)
352
352
  }
353
353
  }
354
-
355
- func main() {
356
- watch()
357
- }
example/{styles.css → config.css} RENAMED
File without changes
example/makefile CHANGED
@@ -1 +1,2 @@
1
+ build-css:
1
- npx tailwindcss-cli@latest build -o assets/styles.css
2
+ npx tailwindcss-cli@latest build config.css -o assets/styles.css