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

x/eta/file-handlers.ts>loadFile

Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
Go to Latest
function loadFile
import { loadFile } from "https://deno.land/x/eta@v2.1.1/file-handlers.ts";

Reads a template, compiles it into a function, caches it if caching isn't disabled, returns the function

Parameters

filePath: string

Absolute path to template file

options: PartialConfigWithFilename

Eta configuration overrides

optional
noCache: boolean

Optionally, make Eta not cache the template