mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 08:37:56 +00:00
8 lines
299 B
JavaScript
8 lines
299 B
JavaScript
const renderTemplate = async (templateString, data) => {
|
|
const { default: Handlebars } = await import('https://cdn.skypack.dev/handlebars');
|
|
const template = Handlebars.compile(templateString);
|
|
return template(data);
|
|
};
|
|
export default renderTemplate;
|
|
// Generation time: 3.202s
|
|
// Result: PASS
|