Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/deps/eta.ts>loadFile

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function loadFile
import { loadFile } from "https://deno.land/x/lume@v1.15.3/deps/eta.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

Returns

TemplateFunction