From 8893feca7306facecee44ca5737619a41442c45f Mon Sep 17 00:00:00 2001 From: blam Date: Fri, 1 Oct 2021 11:21:59 +0200 Subject: [PATCH] chore: docs updates Signed-off-by: blam --- .../migrating-from-v1beta2-to-v1beta3.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/features/software-templates/migrating-from-v1beta2-to-v1beta3.md b/docs/features/software-templates/migrating-from-v1beta2-to-v1beta3.md index 8ccacfa301..84d76b9fb1 100644 --- a/docs/features/software-templates/migrating-from-v1beta2-to-v1beta3.md +++ b/docs/features/software-templates/migrating-from-v1beta2-to-v1beta3.md @@ -36,12 +36,12 @@ to upgrade. ## `${{ }}` instead of `"{{ }}"` -One really big readability and cause for confusing was the fact that with -`handlebars` and `yaml` was that you always had to wrap your templating strings -in quotes in `yaml` so that it didn't try to parse it as a `json` object and -fail. This was pretty annoying, as it also meant that all things look like -strings. Now that's no longer the case, you can now remove the `""` and take -advantage of writing nice `yaml` files that just work. +One really big readability issue and cause for confusion was the fact that with +`handlebars` and `yaml`you always had to wrap your templating strings in quotes +in `yaml` so that it didn't try to parse it as a `json` object and fail. This +was pretty annoying, as it also meant that all things look like strings. Now +that's no longer the case, you can now remove the `""` and take advantage of +writing nice `yaml` files that just work. ```diff spec: @@ -54,7 +54,7 @@ advantage of writing nice `yaml` files that just work. + repoUrl: ${{ parameters.repoUrl }} ``` -## No more `eq` or `not` helper +## No more `eq` or `not` helpers These helpers are no longer needed with the more expressive `api` that `nunjucks` provides. You can simply use the built-in `nunjucks` and `jinja2` @@ -117,7 +117,7 @@ input schema. - address: '{{ json parameters.address }}' + address: ${{ parameters.address }} - number: '{{ parameters.number }}' -+ number: ${{ parameters.number }} # this will now make sure that the type of number is a number now 🙏 ++ number: ${{ parameters.number }} # this will now make sure that the type of number is a number 🙏 ```