Skip to content

Commit 015460d

Browse files
committed
docs tidy-up
1 parent 1c46bd1 commit 015460d

15 files changed

+32
-30
lines changed

docs/handlebars/extension_exists.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Only the *multiActiveKey* and *targetDataItem* properties are currently supporte
88

99
## Usage
1010

11-
```json
11+
``` handlebars
1212
{{#exists "<category / json segment>" "<optional value>"}}
1313
```
1414

1515
## Example
1616

17-
```json
17+
``` handlebars
1818
{{#exists multiActiveKey}}There is a multi-active key!{{else}}No multi-active key is found in this data object mapping.{{/exists}}
1919
{{#exists multiActiveKey "DATE_OF_BIRTH"}}There is a multi-active key which is not DATE_OF_BIRTH{{else}}No multi-active key with DATE_OF_BIRTH is found in this data object mapping.{{/exists}}
2020
{{#exists targetDataItem}}There is a target data item in this mapping!{{else}}No target data items are defined in this mapping.{{/exists}}

docs/handlebars/extension_lookupextension.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Pass in the extensions list and the string key value.
88

99
## Usage
1010

11-
```json
11+
``` handlebars
1212
{{lookupExtension <extension list> "<string value>"}}
1313
```
1414

1515
## Example
1616

17-
```json
17+
``` handlebars
1818
The lookup value for the 'type' extension is '{{lookupExtension sourceDataObjects.0.extensions "type"}}'.
1919
```
2020

docs/handlebars/extension_now.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Get the date and time at the moment of execution.
44

55
## Usage
66

7-
```json
7+
``` handlebars
88
{{now}}
99
```
1010

1111
## Example
1212

13-
```json
13+
``` handlebars
1414
The time is {{now}}.
1515
```
1616

docs/handlebars/extension_randomdate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ This was originally added to generate test data, and is used for referential-int
66

77
## Usage
88

9-
```json
9+
``` handlebars
1010
{{randomdate 2020}}
1111
```
1212

1313
## Example
1414

15-
```json
15+
``` handlebars
1616
Here is a random date: {{randomdate 2020}}.
1717
```
1818

docs/handlebars/extension_randomnumber.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ This was originally added to generate test data, and is used for referential-int
66

77
## Usage
88

9-
```json
9+
``` handlebars
1010
{{randomnumber 5}}
1111
```
1212

1313
## Example
1414

15-
```json
15+
``` handlebars
1616
And here is a random string: {{randomnumber 5}}.
1717
```
1818

docs/handlebars/extension_randomstring.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Generate a random string no longer than the provided characters as integer input
44

55
## Usage
66

7-
```json
7+
``` handlebars
88
{{randomstring 10}}
99
```
1010

1111
## Example
1212

13-
```json
13+
``` handlebars
1414
And here is a random string: {{randomstring 10}}.
1515
```
1616

docs/handlebars/extension_replicate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ This is often used to generate test data.
66

77
## Usage
88

9-
```json
9+
``` handlebars
1010
{{#replicate 10}}
1111
```
1212

1313
## Example
1414

15-
```json
15+
``` handlebars
1616
{{#replicate 3}}
1717
This value is replicated 3 times!
1818
{{/replicate}}

docs/handlebars/extension_space.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Space will space out (!?) the name of the input value to 30 characters using tab
44

55
## Usage
66

7-
```json
7+
``` handlebars
88
{{space "<value>"}}
99
```
1010

1111
## Example
1212

13-
```json
13+
``` handlebars
1414
This is {{space "Hello World"}} ...spaced out.
1515
```
1616

docs/handlebars/extension_stringcompare.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Block helper to evaluate if the input matches a specified string. Also optionall
44

55
## Usage
66

7-
```json
7+
``` handlebars
88
{{#stringcompare string1 string2}} do something {{else}} do something else {{/stringcompare}}
99
```
1010

1111
## Example
1212

13-
```json
13+
``` handlebars
1414
A and B {{#stringcompare "A" "B"}}are the same. {{else}}are not the same. {{/stringcompare}}
1515
```
1616

docs/handlebars/extension_stringdiff.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ Block helper to evaluate if the input does *not* match a specified string. Also
44

55
## Usage
66

7-
```json
7+
``` handlebars
88
{{#stringdiff string1 string2}} do something {{else}} do something else {{/stringdiff}}
99
```
1010

1111
## Example
1212

13-
```json
13+
``` handlebars
1414
A and B {{#stringdiff "A" "B"}}are not the same. {{else}}are the same. {{/stringdiff}}
1515
```
1616

0 commit comments

Comments
 (0)