Skip to content

Commit

Permalink
docs: re-generate
Browse files Browse the repository at this point in the history
  • Loading branch information
crhntr committed Nov 28, 2024
1 parent 1d373eb commit 6c2e2a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,14 @@ or methods:
- [`Template.Option`](https://pkg.go.dev/html/template#Template.Option)
- [`Template.Funcs`](https://pkg.go.dev/html/template#Template.Option)

then iterate over the resulting parsed templates to discover templates matching the template name pattern documented in the Writing Templates section below.
Muxt iterates over the resulting parsed templates to discover templates matching the template name pattern documented in the "Naming Templates" section below.

### Writing Template Names
### Naming Templates

`muxt generate` will read your embedded HTML templates and generate/register an [`http.HandlerFunc`](https://pkg.go.dev/net/http#HandlerFunc) for each template with a name that matches an expected patten.

If the template name does not match the pattern, it is ignored by muxt.

Since Go 1.22, the standard library route **mu**ltiple**x**er can parse path parameters.

It has expects strings like this
Expand Down

0 comments on commit 6c2e2a1

Please sign in to comment.