Skip to main content

TemplatePlaceholder

One {name} or {name|formatter} in a template.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { TemplatePlaceholder } from "@mapcairn/core";

interface TemplatePlaceholder

Properties​

formatter​

readonly formatter?: string;

The name of the registered formatter to run the value through, when there is one.

name​

readonly name: string;

The decoded field to read.

Source: packages/core/src/layers/template.ts:28