Skip to main content
Module

x/eta/file-handlers.ts>includeFile

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

Get the template function.

If options.cache is true, then the template is cached.

This returns a template function and the config object with which that template function should be called.

Parameters

path: string

path for the specified file (if relative, specify views on options)

options: EtaConfig

compilation options

Returns

[Eta template function, new config object]