deno.land / x / eta@v1.12.3 / file-helpers.ts

file-helpers.ts
View Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { includeFile } from "./file-handlers.ts";
/* TYPES */
import type { 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 { const templateAndConfig = includeFile(path, this); return templateAndConfig[0](data, templateAndConfig[1]);}
eta
Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
DocumentationDocumentation
GitHub Repositoryeta-dev/eta
GitHub Stars
527

Version Info

Tagged at
10 months ago

External Dependencies

1 external dependency