Skip to main content
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.13.2/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