website: Make template file extension more consistent (#25029)

Co-authored-by: Judith Malnick <judith.patudith@gmail.com>
This commit is contained in:
Alejandro Rosero Vicuña 2020-09-29 01:08:24 +02:00 committed by GitHub
parent 7ccea30b28
commit 6d66b8b616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ to render templates while respecting resource dependencies.
### Lists
Given a template file `backends.tmpl` with the following content:
Given a template file `backends.tpl` with the following content:
```
%{ for addr in ip_addrs ~}
@ -62,7 +62,7 @@ backend ${addr}:${port}
The `templatefile` function renders the template:
```
> templatefile("${path.module}/backends.tmpl", { port = 8080, ip_addrs = ["10.0.0.1", "10.0.0.2"] })
> templatefile("${path.module}/backends.tpl", { port = 8080, ip_addrs = ["10.0.0.1", "10.0.0.2"] })
backend 10.0.0.1:8080
backend 10.0.0.2:8080