---
title: "invalid-template"
description: "Detect invalid constant text and HTML templates."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# invalid-template

**Default severity:** `error`

Checks constant templates in direct `template.New(...).Parse(...)` chains.
Receivers that may use custom delimiters are left alone.

## Bad

```go
template.New("greeting").Parse(`Hello, {{.Name}`) // reported
```

## Good

```go
template.New("greeting").Parse(`Hello, {{.Name}}`)
```

Source: https://strider.gempir.com/analyzers/invalid-template/index.mdx
