terraform-provider-html

command module
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 5 Imported by: 0

README

HTML.tf

HTML × Terraform

The Next Generation HTML Builder.

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

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
}
# <!DOCTYPE html>
# <html>
#   <body>
#     <h1>Hello, HTML.tf!</h1>
#     <p>This HTML was generated by <a href="https://registry.terraform.io/providers/koki-develop/html/latest/docs">HTML.tf</a>.</p>
#   </body>
# </html>

$ 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.

terraform {
  required_providers {
    html = {
      source = "koki-develop/html"
    }
  }
}

provider "html" {}

Next, run terraform init.

$ terraform init

That's it. You are ready to use HTML.tf.

Examples

Documentation

LICENSE

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL