x/eta@v1.12.3/containers.ts

Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
GitHub Stars
590
Latest
import { Cacher } from "./storage.ts";
/* TYPES */
import type { TemplateFunction } from "./compile.ts";
/* END TYPES */
/** * Eta's template storage * * Stores partials and cached templates */
const templates = new Cacher<TemplateFunction>({});
export { templates };