Skip to main content
Module

x/ter/deps.ts

A tiny wiki-style site builder with Zettelkasten flavor.
Go to Latest
import * as ter from "https://deno.land/x/ter@0.9.0/deps.ts";

Namespaces

extract and test functions to handle many forms of front matter.

Variables

Eta's template storage

Functions

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

Takes a template string and returns a template function that can be called with (data, config, [cb])

Update Eta's base config

Copy a file or directory. The directory can have contents. Like cp -r. Requires the --allow-read and --allow-write flag.

Deeply merge objects.

Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted. Requires the --allow-read and --allow-write flag.

Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. Requires the --allow-read and --allow-write flag.

Expand the glob string from the specified root directory and yield each result as a WalkEntry object.

Extracts front matter from a string.

Tests if a string has valid front matter.

Compiles markdown to HTML asynchronously.

HTMLMinifier is a highly configurable, well-tested, JavaScript-based HTML minifier.

Take a set of command line arguments, optionally with a set of options, and return an object representing the flags found in the passed arguments.

Create a ReadableStream<Uint8Array> from from a Deno.Reader.

Render a template

Serves HTTP requests with the given handler.

Walks the file tree rooted at root, yielding each file or directory in the tree filtered according to the given options. The files are walked in lexical order, which makes the output deterministic but means that for very large directories walk() can be inefficient.

Interfaces

Most of the options are disabled by default