1.1.0 • Published 4 years ago

json-website-builder v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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.