Liquid-based URL templating for drilldown and dynamic links.
function renderTemplatedUrl(
templatedUrl: string,
value: ResultValue,
row: Record<string, Record<string, ResultValue>>
): string;
function getTemplatedUrlRowDependencies(templatedUrl: string): string[];import { renderTemplatedUrl } from '@lightdash/common';
const url = renderTemplatedUrl(
'https://example.com/customer/{{ row.customers.customer_id.value }}',
value,
row
);