Nathan Jacobson

Results 2 issues of Nathan Jacobson

Based on #2551 Adds a new middleware `AllowContentType` which restricts routes to only accepts requests with certain `Content-Type` header values. It's similar to the middleware of the same name available...

based on #1091 I replaced the inline check in `generator.go` https://github.com/a-h/templ/blob/15199ff1f8fc2cf6a89f5e21c95d642760735645/generator/generator.go#L1347-L1350 With a separate check function `isExpressionAttributeValueURL` that can be extended to check for any combination of an HTML element...