or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

docs

authorization.mdcharts.mdcompiler.mdconditional-formatting.mddashboards.mddbt.mdee-features.mdexplore-fields.mdfilters.mdformatting.mdindex.mdmetric-queries.mdparameters.mdpivot.mdprojects-spaces.mdsql-runner.mdtemplating.mdtypes.mdutilities.mdvisualizations.mdwarehouse.md
tile.json

templating.mddocs/

Templating System

Liquid-based URL templating for drilldown and dynamic links.

Functions

function renderTemplatedUrl(
  templatedUrl: string,
  value: ResultValue,
  row: Record<string, Record<string, ResultValue>>
): string;

function getTemplatedUrlRowDependencies(templatedUrl: string): string[];

Usage

import { renderTemplatedUrl } from '@lightdash/common';

const url = renderTemplatedUrl(
  'https://example.com/customer/{{ row.customers.customer_id.value }}',
  value,
  row
);