Skip to content

Commit f87fc20

Browse files
committed
chore: package version update
1 parent 88c333a commit f87fc20

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

docs/references/variables.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Variables
33
---
4-
54
Variables are ways to hold value or computed values in specification files, like in programming language.
65

76
## Variables node
@@ -73,7 +72,7 @@ chk fetch request-someurl.chk -V {"emailAddress": "user@domain.ext"}
7372

7473
Then CHKware will replace `<% emailAddr %>` with `"user@domain.ext"`, before making request. When variable not passed from console, `<% emailAddr %>` will be replaced with `null`.
7574

76-
### Setting default value
75+
## Setting default value
7776

7877
It's possible to set a default value for a variable. Consider following example:
7978

@@ -107,7 +106,7 @@ chk fetch request-someurl.chk
107106

108107
Then CHKware will replace `<% emailAddr %>` with something like `"user-2@domain.ext"` (or with an email of randomly picked number) since we set default value to `user-<% range(1, 5) | random %>@domain.ext`.
109108

110-
### Variable templating with Jinja2
109+
## Variable templating with Jinja2
111110

112111
For variable templating _CHKware_ uses Jinja2. Almost all of the [Jinja2 features](https://jinja.palletsprojects.com/en/stable/templates/) are supported. That makes it possible to change variables values. e.g:
113112

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)