Skip to content

Commit

Permalink
Merge pull request #1275 from tpmccallum/fix-variable-docs
Browse files Browse the repository at this point in the history
Fix variables in manifest
  • Loading branch information
itowlson authored May 7, 2024
2 parents 8fd92da + 4aab76f commit 5b7f024
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions content/cloud/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ command = "componentize-py -w spin-http componentize app -o app.wasm"
watch = ["*.py", "requirements.txt"]

[component.pw-checker.variables]
password = "{{ secret }}"
password = "\{{ secret }}"
```

The resulting application manifest should look similar to the following:
Expand Down Expand Up @@ -155,7 +155,7 @@ command = "cargo build --target wasm32-wasi --release"
watch = ["src/**/*.rs", "Cargo.toml"]

[component.pw-checker.variables]
password = "{{ secret }}"
password = "\{{ secret }}"
```

## Using Variables in a Spin Application
Expand Down
4 changes: 2 additions & 2 deletions content/spin/v2/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Variables are surfaced to a specific component by adding a `[component.(name).va

```toml
[component.cart.variables]
password = "{{ secret }}"
password = "\{{ secret }}"
api_host = "https://my-api.com"
```

Expand Down Expand Up @@ -63,7 +63,7 @@ component = "password-checker"
[component.password-checker]
source = "app.wasm"
[component.password-checker.variables]
password = "{{ secret }}"
password = "\{{ secret }}"
api_host = "https://my-api.com"
```

Expand Down

0 comments on commit 5b7f024

Please sign in to comment.