Skip to content

Commit

Permalink
fix urls
Browse files Browse the repository at this point in the history
  • Loading branch information
maddalax committed Oct 29, 2024
1 parent 60e1a16 commit d44cd0b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ js.SetClassOnSibling(string, string)
js.RemoveClassOnSibling(string, string)

```
For more usages: see https://github.com/maddalax/htmgo/blob/master/htmgo-site/pages/form.go
For more usages: see https://htmgo.dev/examples/form


**Example:** Evaluating arbitrary JS
Expand Down
3 changes: 1 addition & 2 deletions htmgo-site/md/docs/6_pushing_data/1_server_sent_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
htmgo supports server-sent events (SSE) out of the box.
This allows you to push data from the server to the client in real-time.

Example of this can be found in the [chat-app](https://github.com/maddalax/htmgo/tree/master/examples/chat) example.
Demo: https://chat-example.htmgo.dev
Example of this can be found in the [chat-app](https://htmgo.dev/examples/chat) example.

## How it works ##
1. The client sends a request to the server to establish a connection.
Expand Down
2 changes: 1 addition & 1 deletion htmgo-site/md/docs/7_htmx_extensions/2_trigger_children.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is useful for things such as:

<br>

**Example:** https://github.com/maddalax/htmgo/blob/master/htmgo-site/pages/form.go#L17
**Example:** https://htmgo.dev/examples/form

In this example: The trigger-children extension will trigger **hx-before-request** and **hx-after-request**
on all children of the form when the form is submitted, and the button reacts to that by showing a loading state.
2 changes: 1 addition & 1 deletion htmgo-site/pages/examples/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

func GetGithubPath(path string) string {
path = strings.ReplaceAll(path, "/partials/examples/", "/partials/snippets/")
path = strings.ReplaceAll(path, "/examples/", "/snippets/")
return fmt.Sprintf("https://github.com/maddalax/htmgo/tree/master/htmgo-site/partials%s.go", path)
}

Expand Down

0 comments on commit d44cd0b

Please sign in to comment.