Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.2.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