Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/eta/src/compile.ts>compile

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

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

Parameters

this: Eta
  • The template string
str: string
  • A custom configuration object (optional)
optional
options: Partial<Options>