UNPKG

tarkine

Version:

Tarkine - A lightweight and high-performance template engine for Node.js, designed for speed and simplicity.

65 lines (50 loc) 1.68 kB
<p align="center"> <img src="https://raw.githubusercontent.com/madhanmaaz/tarkine/master/assets/logo.webp" height="300"> </p> <p align="center"> Tarkine - A lightweight and high-performance template engine for Node.js, designed for speed and simplicity. </p> <p align="center"> <a href="https://github.com/madhanmaaz/tarkine">Documentation</a> </p> <p align="center"> <a href="https://www.npmjs.com/package/tarkine"> <img src="https://img.shields.io/npm/v/tarkine.svg" alt="npm version"> </a> <a href="https://www.npmjs.com/package/tarkine"> <img src="https://img.shields.io/npm/dm/tarkine.svg" alt="Downloads"> </a> <a href="https://github.com/madhanmaaz/tarkine/blob/master/LICENSE"> <img src="https://img.shields.io/npm/l/tarkine.svg" alt="License"> </a> <a href="https://marketplace.visualstudio.com/items?itemName=madhanmaaz.tarkine-vscode-extension"> <img src="https://img.shields.io/badge/VSCode-Extension-blue?logo=visualstudiocode" alt="VSCode Extension"> </a> </p> ## Features - 🚀 Fast template rendering - 📦 Zero dependencies - 🔒 Automatic HTML escaping - ✨ Raw HTML output when needed - 🔀 Conditionals - 🔁 Loops (arrays & objects) - 🧮 JavaScript expressions - 🌍 Global variables - 💾 Compiled template caching - 📄 Template includes ## Installation ```bash npm install tarkine ``` # Quick Start ```js const { createEngine } = require("tarkine"); const engine = createEngine(); const html = engine.render( "Hello, {{ name }}!", { name: "World" } ); console.log(html); // Hello, World! ``` # License MIT © Madhanmaaz