import { render } from 'html-template-lite'
const html = render(
/* html */ `
Name: {name}
Rank: {rank}
`,
{ name: "o's", rank: 42 },
)
console.log(html)
/*
Name: <b>o's</b>
Rank: 42
*/
const listTemplate = /* html */ ``
const itemTemplate = /* html */ ` {title}`
const items = [
{ url: 'https://github.com', title: 'Github' },
{ url: 'https://gitlab.com', title: 'Gitlab' },
{ url: 'https://bitbucket.org', title: 'Bitbucket' },
]
const body = render(listTemplate, {
items: render(itemTemplate, items, '\n'),
})
console.log(body)
/*
*/