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.16.1/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