An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          


HTML.tf




HTML × Terraform



The Next Generation HTML Builder.


GitHub release (latest by date)
GitHub Workflow Status
Go Report Card
LICENSE

```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)