Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/eta/containers.ts

Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
Go to Latest
File
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 };