mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 19:21:01 +00:00
9 lines
305 B
JavaScript
9 lines
305 B
JavaScript
const renderTemplate = async (template, data) => {
|
|
const { default: Handlebars } = await import(
|
|
"https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.esm.min.js"
|
|
);
|
|
return Handlebars.compile(template)(data);
|
|
};
|
|
export default renderTemplate;
|
|
// Generation time: 1.675s
|
|
// Result: FAIL
|