Data JSON - v0.1.0+alpha
Insert content extracted from a JSON file.
Use of an inline template
Replace "John" [coded John] by the value located at /Person/name
in data-1.json
With wb-hbs
Render the template from the data located at "data": "data-1.json#/Awsome"
My second template
Created by: {{firstName}} {{lastName}}
Content of data-1.json
{
"@context": {
},
"firstName": "Toufic",
"lastName": "Sbeiti",
"country": {
"CA": "Canada",
"BG": "Belgique"
},
"Awsome": {
"firstName": "Pierre",
"lastName": "Dubois",
"country": {
"CA": "Canada",
"BG": "Belgique"
}
},
"Person":{
"name": "Louis"
}
}
- Date modified: