Skip to content

Commit

Permalink
fix issue: accordproject#2
Browse files Browse the repository at this point in the history
Signed-off-by: 2003Aditya <[email protected]>
  • Loading branch information
2003Aditya committed Jan 14, 2024
1 parent 9cdbc32 commit ff58c71
Showing 1 changed file with 36 additions and 32 deletions.
68 changes: 36 additions & 32 deletions src/samples/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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 };

0 comments on commit ff58c71

Please sign in to comment.