function isCustomTemplate
isCustomTemplate(html: string): boolean

Reports whether an HTML template looks dynamic enough to act as a custom runner template.

isCustomTemplate('<body>{{qunitxScript}}</body>'); // true — the explicit marker
isCustomTemplate('<h1>{{applicationName}}</h1>'); // true — any handlebars token qualifies
isCustomTemplate('<body>static</body>'); // false

Parameters

html: string

Return Type

boolean

Usage

import { isCustomTemplate } from "lib/utils/html.ts";