From 6c2e2a11f1a61a716caf98c8a5b2311420e7251c Mon Sep 17 00:00:00 2001 From: Chrstopher Hunter <8398225+crhntr@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:22:07 -0800 Subject: [PATCH] docs: re-generate --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a4799b0..92b6911 100644 --- a/README.md +++ b/README.md @@ -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