Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/eta/src/compile-string.ts>compileToString

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

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

Parameters

this: Eta
str: string
optional
options: Partial<Options>

Returns

string