fix typos

This commit is contained in:
maddalax 2024-09-29 09:18:22 -05:00
parent 8f9de65318
commit ca22942ab1
5 changed files with 5 additions and 5 deletions

View file

@ -40,7 +40,7 @@ func DocsPage(ctx *h.RequestContext) *h.Page {
3. Built in support for various libraries such as tailwindcss, htmx 3. Built in support for various libraries such as tailwindcss, htmx
4. Go functions are components, no special syntax neccessary to learn 4. Go functions are components, no special syntax necessary to learn
5. Many composable utility functions to streamline development and reduce boilerplate 5. Many composable utility functions to streamline development and reduce boilerplate

View file

@ -4,7 +4,7 @@
##### **Prerequisites:** ##### **Prerequisites:**
1. Go: https://go.dev/doc/install 1. Go: https://go.dev/doc/install
2. Familiarity with https://htmx.org and html/hypermedia 2. Familiarity with https://htmx.org and html/hypermedia
1. If you have not read the htmx docs, please do so before continuting, a lot of concepts below will be much more clear after. 1. If you have not read the htmx docs, please do so before continuing, a lot of concepts below will be much more clear after.
<br> <br>

View file

@ -2,7 +2,7 @@
Partials are where things get interesting. Partials allow you to start adding interactivity to your website by swapping in content, setting headers, redirecting, etc. Partials are where things get interesting. Partials allow you to start adding interactivity to your website by swapping in content, setting headers, redirecting, etc.
Partials have a similiar structure to pages. A simple partial may look like: Partials have a similar structure to pages. A simple partial may look like:
```go ```go
func CurrentTimePartial(ctx *h.RequestContext) *h.Partial { func CurrentTimePartial(ctx *h.RequestContext) *h.Partial {

View file

@ -22,7 +22,7 @@ func Card(ctx *h.RequestContext) *h.Element {
``` ```
My card component here fetches all my tasks I have on my list, and renders each task. My card component here fetches all my tasks I have on my list, and renders each task.
If you are familar with React, then you would likely place this fetch logic inside of a useEffect or (useQuery library) so it is not constantly refetched as the component re-renders. If you are familiar with React, then you would likely place this fetch logic inside of a useEffect or (useQuery library) so it is not constantly refetched as the component re-renders.
With **htmgo**, the only way to update content on the page is to use htmx to swap out the content from loading a partial. Therefore you control exactly when this Card component is called, not the framework behind the scenes. With **htmgo**, the only way to update content on the page is to use htmx to swap out the content from loading a partial. Therefore you control exactly when this Card component is called, not the framework behind the scenes.

View file

@ -4,7 +4,7 @@ Sometimes you need to update elements client side without having to do a network
To make this work while still keeping a pure go feel, we offer a few utility methods to execute various javascript on an element. To make this work while still keeping a pure go feel, we offer a few utility methods to execute various javascript on an element.
**Example:** When the form is submitted, set the button text to submitting and disable it, and vise versa after submit is done. **Example:** When the form is submitted, set the button text to submitting and disable it, and vice versa after submit is done.
```go ```go
func MyForm() *h.Element { func MyForm() *h.Element {