1.0.2 • Published 5 years ago

fill.js v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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