Incorporating Angular 6 in my project, I have come up with the following templates:
- Header, Left panel, Body part, Footer
- Header, Left panel, Body part, Right panel, Footer
- Header, Body part, Footer
Considering the numerous templates, I am aiming to transition from hardcoding HTML parts to utilizing JSON for better organization.
The structure of the JSON file will be as follows:
{
"horizontal": [
{
width: "20%",
height: "100%"
},
{
width: "80%",
height: "100%",
{
"vertical": [
{
width: "80%",
height: "60%"
},
{
width: "80%",
height: "40%"
}
]
}
}
]
}
This JSON schema basically divides the page into a left panel (20% width) and main body section (80%), further dividing the body vertically into 60% top area and 40% bottom area.
Are there any methods available to convert this JSON structure into HTML?