mistts
v0.1.5
Published
MistTs is a templating engine for TypeScript.
Downloads
382
Readme
MistTs
MistTs is a templating engine for TypeScript.
npm install mistts
Example
{{-- index.mist --}}
<h1>Hello {{name}}</h1>
npx mistts
// index.ts
import { Templater } from "mistts";
import * as template from "./index.mist.ts";
const templater = new Templater().add(template);
console.log(
await templater.render("index", {
name: "John Doe",
})
);