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


d1af9a1c pyros2097

5 years ago
update readme
Files changed (1) hide show
  1. readme.md +13 -5
readme.md CHANGED
@@ -4,11 +4,19 @@
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 package to build [isomorphic web apps](https://developers.google.com/web/progressive-web-apps/) with [Go](https://golang.org) and [WebAssembly](https://webassembly.org).
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.
8
8
 
9
- It uses a [declarative syntax](#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 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
+
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
+
13
+ Inspired by:
14
+ * [go-app](https://github.com/maxence-charriere/go-app)
15
+ * [react](https://reactjs.org/docs/components-and-props.html)
16
+ * [reacct-hooks](https://reactjs.org/docs/hooks-intro.html)
17
+ * [jotai](https://github.com/pmndrs/jotai)
18
+ * [klyva](https://github.com/merisbahti/klyva)
10
19
 
11
- This originally started out as of fork of this awesome golang PWA framework [go-app](https://github.com/maxence-charriere/go-app). All credits goes to Maxence Charriere for majority of the work.
12
20
 
13
21
  ## Install
14
22
 
@@ -21,7 +29,7 @@ go mod init
21
29
  go get -u -v github.com/pyros2097/wapp
22
30
  ```
23
31
 
24
- ## Declarative syntax
32
+ ## Example
25
33
 
26
34
  **wapp** uses a declarative syntax so you can write component-based UI elements just by using the Go programming language. It follows the same ideas of react. It has functional components and hooks.
27
35
 
@@ -78,7 +86,7 @@ import (
78
86
  . "github.com/pyros2097/wapp"
79
87
  )
80
88
 
81
- func Clock(c *RenderContext, title string) UI {
89
+ func Route(c *RenderContext, title string) UI {
82
90
  timeValue, setTime := c.UseState(time.Now())
83
91
  running, setRunning := c.UseState(false)
84
92
  startTimer := func() {