← back to ClawCoder

src/lib/profiles/templates.ts

9 lines

import Mustache from 'mustache'

// Disable HTML escaping — we're generating markdown, not HTML
Mustache.escape = (text: string) => text

export function renderTemplate(template: string, vars: Record<string, string>): string {
  return Mustache.render(template, vars)
}