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


0d618f87 pyros2097

tag: v0.2.1

v0.2.1

5 years ago
fix readme
Files changed (1) hide show
  1. readme.md +4 -16
readme.md CHANGED
@@ -4,9 +4,9 @@
4
4
  <a href="https://pkg.go.dev/github.com/pyros2097/wapp"><img src="https://img.shields.io/badge/dev-reference-007d9c?logo=go&logoColor=white&style=flat" alt="pkg.go.dev docs"></a>
5
5
  </p>
6
6
 
7
- **wapp** is a framework to build [isomorphic web apps](https://developers.google.com/web/progressive-web-apps/) with [Go](https://golang.org) and [WebAssembly](https://webassembly.org). Its like nextjs but using golang instead.
7
+ **wapp** is a framework to build isomorphic web apps in golang.
8
8
 
9
- It uses a declarative syntax that allows creating and dealing with HTML elements only by using Go, and without writing any HTML markup. The syntax is inspired by react and its awesome hooks and functional component features. It is highly opioninated and integrates very well with tailwind css for now.
9
+ It uses a declarative syntax using funcs that allows creating and dealing with HTML elements only by using Go, and without writing any HTML markup. The syntax is inspired by react and its awesome hooks and functional component features. It is highly opioninated and integrates very well with tailwind css for now.
10
10
 
11
11
  This originally started out as of fork of this awesome go-app PWA framework. All credits goes to Maxence Charriere for majority of the work.
12
12
 
@@ -71,6 +71,7 @@ func Counter(c *RenderContext) UI {
71
71
  }
72
72
 
73
73
  func main() {
74
+ Route("/", Counter)
74
75
  Run(Counter)
75
76
  }
76
77
  ```
@@ -129,21 +130,8 @@ func Route(c *RenderContext, title string) UI {
129
130
  }
130
131
 
131
132
  func main() {
133
+ Route("/", Clock)
132
134
  Run(Clock)
133
135
  }
134
136
 
135
137
  ```
136
-
137
- The directory structure is a lot lke this,
138
-
139
- ```sh
140
- ├── assets
141
- │ └── icon.png
142
- │ └── styles.css
143
- ├── pages
144
- │ └── index
145
- │ └── main.go
146
- │ └── about
147
- │ └── main.go
148
- └── main.go
149
- ```