Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/view_engine/deps.ts

🚀A Template View Engine for Deno frameworks
Latest
import * as viewEngine from "https://deno.land/x/view_engine@v10.6.0/deps.ts";

Classes

A class which registers middleware (via .use()) and then processes inbound requests against that middleware (via .listen()).

Variables

Eta's base (global) configuration

Eta's base (global) configuration

Eta's template storage

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Set text color to blue.

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

f
existsSync
deprecated

Test whether or not the given path exists by checking with the file system

Set text color to green.

Determines the common path from a set of paths, using an optional separator, which defaults to the OS default separator.

Convert a glob string to a regular expression.

Test whether the given string is a glob

Like join(), but doesn't collapse "**/.." when globstar is true.

Like normalize(), but doesn't collapse "**/.." when globstar is true.

Interfaces

A parsed path object generated by path.parse() or consumed by path.format().