Skip to main content
Module

x/eta/browser.ts

Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
Very Popular
Go to Latest
import * as mod from "https://deno.land/x/eta@v1.12.3/browser.ts";

Variables

Eta's base (global) configuration

Eta's base (global) configuration

Eta's template storage

Functions

Takes a template string and returns a template function that can be called with (data, config, [cb])

Compiles a template string to a function string. Most often users just use compile(), which calls compileToString and creates a new function using the result

Update Eta's base config

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

Render a template

Render a template asynchronously