A NodeJS module to enable you to use JSON files for website building.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- NodeJS
Install the module from npm
npm install otan
Run the following command from the project dir to get the generated html file
npm run test
After that,
Navigate to the "tests" folder and open the "test_1.html" to confirm the code's working!
const otan = require("otan");
const json = [{
"title": "Hello world!"
},
{
"type": "body",
"children": [{
"type": "a",
"html": "Hello world!"
}]
}]
otan(json, (html)=>{
console.log(html)
})
- Git
- Theodore Boudros - thboud
This project is licensed under the MIT License - see the LICENSE.md file for details