Skip to main content
Module

x/eta/src/compile-string.ts

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

Functions

Loops through the AST generated by parse and transform each item into JS calls

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