forked from accordproject/template-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: 2003Aditya <[email protected]>
- Loading branch information
1 parent
9cdbc32
commit ff58c71
Showing
1 changed file
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,11 @@ const TEMPLATE = `> A general sample that uses a range of features | |
{{country}} | ||
{{/clause}} | ||
- You are *{{age}}* years old | ||
- {{#if ageExists}} | ||
You {{age}} years old. | ||
{{else}} | ||
Age is not available. | ||
{{/if}} | ||
- Your monthly salary is {{salary as "0,0.00 CCC"}} | ||
- Your favorite colours are {{#join favoriteColors}} | ||
|
@@ -59,41 +63,41 @@ Thank you. | |
`; | ||
|
||
const DATA = { | ||
"$class" : "[email protected]", | ||
"name": "John Doe", | ||
"address" : { | ||
"line1" : "1 Main Street", | ||
"city" : "Boson", | ||
"state" : "MA", | ||
"country" : "USA" | ||
}, | ||
"age" : 42, | ||
"salary": { | ||
"$class": "[email protected]", | ||
"doubleValue": 1500, | ||
"currencyCode": "EUR" | ||
}, | ||
"favoriteColors" : ['red', 'green', 'blue'], | ||
"order" : { | ||
"createdAt" : "2023-05-01", | ||
"$class" : "[email protected]", | ||
"orderLines": | ||
[ | ||
"$class": "[email protected]", | ||
"name": "John Doe", | ||
"address": { | ||
"line1": "1 Main Street", | ||
"city": "Boson", | ||
"state": "MA", | ||
"country": "USA" | ||
}, | ||
"age": 42, | ||
"salary": { | ||
"$class": "[email protected]", | ||
"doubleValue": 1500, | ||
"currencyCode": "EUR" | ||
}, | ||
"favoriteColors": ['red', 'green', 'blue'], | ||
"order": { | ||
"createdAt": "2023-05-01", | ||
"$class": "[email protected]", | ||
"orderLines": | ||
[ | ||
{ | ||
"$class" : "[email protected]", | ||
"sku" : "ABC-123", | ||
"quantity" : 3, | ||
"price" : 29.99 | ||
"$class": "[email protected]", | ||
"sku": "ABC-123", | ||
"quantity": 3, | ||
"price": 29.99 | ||
}, | ||
{ | ||
"$class" : "[email protected]", | ||
"sku" : "DEF-456", | ||
"quantity" : 5, | ||
"price" : 19.99 | ||
"$class": "[email protected]", | ||
"sku": "DEF-456", | ||
"quantity": 5, | ||
"price": 19.99 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}; | ||
|
||
const NAME = 'Customer Order'; | ||
export {NAME, MODEL,DATA,TEMPLATE}; | ||
export { NAME, MODEL, DATA, TEMPLATE }; |