Module
Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
Popular
import { includeFile } from "./file-handlers.ts";
/* TYPES */
import { EtaConfig } from "./config.ts";
interface GenericData { [index: string]: any; // eslint-disable-line @typescript-eslint/no-explicit-any}
/* END TYPES */
/** * Called with `includeFile(path, data)` */
export function includeFileHelper( this: EtaConfig, path: string, data: GenericData,): string { var templateAndConfig = includeFile(path, this); return templateAndConfig[0](data, templateAndConfig[1]);}