terraform/website/layouts
Martin Atkins 02576988c1 lang: "try" and "can" functions
These are intended to make it easier to work with arbitrary data
structures whose shape might not be known statically, such as the result
of jsondecode(...) or yamldecode(...) of data from a separate system.

For example, in an object value which has attributes that may or may not
be set we can concisely provide a fallback value to use when the attribute
isn't set:

    try(local.example.foo, "fallback-foo")

Using a "try to evaluate" model rather than explicit testing fits better
with the usual programming model of the Terraform language where values
are normally automatically converted to the necessary type where possible:
the given expression is subject to all of the same normal type conversions,
which avoids inadvertently creating a more restrictive evaluation model
as might happen if this were handled using checks like a hypothetical
isobject(...) function, etc.
2020-01-10 15:23:25 -08:00
..
backend-types.erb missing link to OSS backend 2019-06-13 18:00:38 -04:00
commands-providers.erb website: move docs/index.html to docs/cli-index.html 2019-03-15 13:00:58 +00:00
commands-state.erb website: move docs/index.html to docs/cli-index.html 2019-03-15 13:00:58 +00:00
commands-workspace.erb website: Add `workspace show` command to sidebar nav (#20800) 2019-03-22 15:06:53 -07:00
docs.erb website: Document behavior of `self` object for provisioners 2019-10-03 15:12:18 -07:00
downloads.erb website: Use a middleman partial for "other docs" list instead of hardcoding it 2019-03-14 10:38:07 +00:00
functions.erb lang: "try" and "can" functions 2020-01-10 15:23:25 -08:00
guides.erb website: Update URLs and name references for Terraform Cloud rebrand 2019-08-16 15:55:29 -07:00
intro.erb website: Use a middleman partial for "other docs" list instead of hardcoding it 2019-03-14 10:38:07 +00:00
registry.erb website: Add Terraform Registry Provider Docs page (#23139) 2019-10-28 16:05:22 -04:00
terraform.erb provider/terraform: reorganize for merge into core 2017-11-02 10:46:31 -07:00