Repository
Current version released
4 years ago
Versions
deno-dotts
deno-dotts is a deno typescript wrapper for the official doT template engine v2.0.0-beta.1, all features are consistent with the native doT. See https://github.com/olado/doT/tree/v2 for more details.
Since a third-party module named dot already exist on deno.land and capital letters are not allowed, it was renamed “dotts”, which means the ts version of doT.
Usage
// Note the capital T when importing
import { dotts } from "https://deno.land/x/dotts/mod.ts";
const tmpl = dotts.template("<h1>hello, {{= it.name}}</h1>");
console.log(tmpl({ name: "world" }));