Skip to content

JustYuuto/json-website-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Website Builder

npm NPM

JSON Website Builder is a library to build websites with only JSON.

Usage

First, you need to create a JSON file (its name doesn't matter). The content of the file will be the following:

[
  [
    "tag",
    {
      "attr": "value"
    },
    "children"
  ]
]
  • tag: a HTML tag
  • attrs: an object, where the key is the attr, and the value is the attr value
  • children: can be a string with whatever you want, or this object

You can see an example here.