mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 16:47:55 +00:00
8 lines
271 B
JavaScript
8 lines
271 B
JavaScript
const getHandlebars=(async()=>(await import('https://esm.sh/handlebars@4.7.8')).default)();
|
|
|
|
async function renderTemplate(template,data){
|
|
const Handlebars=await getHandlebars;
|
|
const fn=Handlebars.compile(template);
|
|
return fn(data);
|
|
}
|
|
export default renderTemplate; |