https://github.com/koki-develop/terraform-provider-html
The Next Generation HTML Builder.
https://github.com/koki-develop/terraform-provider-html
Last synced: 3 months ago
JSON representation
The Next Generation HTML Builder.
- Host: GitHub
- URL: https://github.com/koki-develop/terraform-provider-html
- Owner: koki-develop
- License: mit
- Created: 2024-07-21T02:03:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-14T18:13:44.000Z (10 months ago)
- Last Synced: 2025-04-15T20:08:26.379Z (10 months ago)
- Language: Go
- Homepage: https://registry.terraform.io/providers/koki-develop/html/latest/docs
- Size: 549 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
HTML.tf
HTML × Terraform
The Next Generation HTML Builder.
```hcl
data "html_html" "main" {
children = [data.html_body.main.html]
}
data "html_body" "main" {
children = [
data.html_h1.heading.html,
data.html_p.message.html,
]
}
data "html_h1" "heading" {
children = ["Hello, HTML.tf!"]
}
data "html_p" "message" {
children = ["This HTML was generated by ${data.html_a.html_tf.html}."]
}
data "html_a" "html_tf" {
href = "https://registry.terraform.io/providers/koki-develop/html/latest/docs"
children = ["HTML.tf"]
}
resource "local_file" "index_html" {
filename = "index.html"
content = data.html_html.main.html
}
#
#
#
#
Hello, HTML.tf!
# This HTML was generated by HTML.tf.
#
#
```
```console
$ terraform init
$ terraform apply
```
# Getting Started
HTML.tf is a Terraform provider that allows you to write HTML in Terraform configuration files.
To use it, add the following provider configuration.
```hcl
terraform {
required_providers {
html = {
source = "koki-develop/html"
}
}
}
provider "html" {}
```
Next, run `terraform init`.
```console
$ terraform init
```
That's it. You are ready to use HTML.tf.
# Examples
- [`examples/`](./examples)
# Documentation
- [Terraform Registry](https://registry.terraform.io/providers/koki-develop/html/latest/docs)
# LICENSE
[MIT](./LICENSE)