Files
lynchmark/tests/4_transpiler/outputs/anthropic_claude-sonnet-4.5 TEMP_0.7.js
2025-11-27 02:15:29 +00:00

9 lines
297 B
JavaScript

async function renderTemplate(templateString, data) {
const { default: Handlebars } = await import(
'https://cdn.jsdelivr.net/npm/handlebars@4.7.8/dist/handlebars.min.js'
);
const template = Handlebars.compile(templateString);
return template(data);
}
export default renderTemplate;