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

x/eta/config.ts>getConfig

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

Takes one or two partial (not necessarily complete) configuration objects, merges them 1 layer deep into eta.config, and returns the result

Parameters

override: PartialConfig

Partial configuration object

optional
baseConfig: EtaConfig

Partial configuration object to merge before override

Example

let customConfig = getConfig({tags: ['!#', '#!']})