---
title: "init(_:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/url/template/init(_:)"
---

# init(_:)

Creates a new template from its text form.

## Declaration

```swift
init?(_ template: String)
```

## Discussion

Discussion The template string needs to be a valid RFC 6570 template. This will parse the template and return nil if the template is invalid.
