Jinya HTML

Jinya HTML is a tagged template string based super simple template engine, which probably doesn’t even deserve the name template engine.


Either copy the index.js file or use the @jinyacms/jinya-html package from NPM.


Jinya HTML is ESM based, so you just need to include the index.js file. See a simple example below:

import { html } from 'jinya-html';

document.addEventListener('DOMContentLoaded', () => {
	const username = 'Foobar';
	const result = html` <h1>${username}</h1>
			${['one', 'two', 'three'].map((item) => `<li>${item}</li>`)}
		<div>${() => 'Test'}</div>`;
	document.body.innerHTML = result;


Jinya HTML is licensed under the MIT License.