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

x/view_engine/deps.ts>eta

🚀A Template View Engine for Deno frameworks
Latest
namespace eta
import { eta } from "https://deno.land/x/view_engine@v10.6.0/deps.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

Reads a template, compiles it into a function, caches it if caching isn't disabled, returns the function

Render a template

Render a template asynchronously