Documento is a microsized, simple and fast JS templating engine that takes a template and data, and returns the template filled with the data.
- Vanilla JS ๐ฆ
- No dependencies required
- Light-weight
- Extremely Fast
- Runtime Interpolation
- User Friendly
The simplest method is to use the hosted version from jsDelivr:
<script src="https://cdn.jsdelivr.net/gh/dbrownjave/documento.js/dist/documento.js"></script>
// 1. create or fetch data
let data = {food: "๐ฅ"}
// 2. create a template
var template = html`
<p>My favorite food is ${data.food}</p>
`
// 3. add your template
doc.html({ add: template })
<p>My favorite food is ๐ฅ</p>
If you are interested in becoming a sponsor, please feel free to contact us!
ยฉ 2019 Magical X Labs
Released under the MIT LICENSE