mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 16:47:55 +00:00
8 lines
275 B
JavaScript
8 lines
275 B
JavaScript
async function renderTemplate(template, data) {
|
|
const { default: Handlebars } = await import('https://esm.sh/handlebars');
|
|
const compiled = Handlebars.compile(template);
|
|
return compiled(data);
|
|
}
|
|
export default renderTemplate;
|
|
// Generation time: 22.419s
|
|
// Result: PASS
|