Skip to content

Commit

Permalink
improve example documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
crhntr committed Aug 5, 2024
1 parent bc0cc26 commit 214671f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ This is especially helpful when you are writing HTMX.
## Example

The "define" blocks in the following template register handlers with the server mux.

The http method, http host, and path semantics match those of in the HTTP package.

This library extends this to add custom data handler invocations see "PATCH /fruits/{fruit}". It is configured to call EditRow on template parse time provided receiver.

When no handler method is specified in the "declare" string (as is the case with "GET /fruits/{fruit}/edit" in the example), the template receives the *http.Request.

```html
<!DOCTYPE html>
<html lang="en">
Expand Down

0 comments on commit 214671f

Please sign in to comment.