fill.js

1.0.2 • Public • Published

fill.js

Simple JSON to HTML Templating

npm install fill.js

npm test

npm run start \=> http://localhost:3000

Browser install

<script src="//unpkg.com/fill.js"></script>

Examples

<div id="root">
    <ul>
      <li>
        <name/>
      </li>
    </ul>
</div>
const JSON = {
  "li": [{
    "name": "Joe"
  }, {
    "name": "Mike"
  }]
}

fill(document.getElementById("root"), JSON)

inline html Try it out

dynamic node Try it out

Package Sidebar

Install

npm i fill.js

Weekly Downloads

7

Version

1.0.2

License

MIT

Unpacked Size

31.2 kB

Total Files

30

Last publish

Collaborators

  • magnumjs