import mustache from "mustache"; const html = ` `; const template = `
{{#authors}}
{{#personalURL}} {{name}} {{/personalURL}} {{^personalURL}}
{{name}}
{{/personalURL}} {{#affiliation}} {{#affiliationURL}} {{affiliation}} {{/affiliationURL}} {{^affiliationURL}}
{{affiliation}}
{{/affiliationURL}} {{/affiliation}}
{{/authors}}
{{publishedMonth}}. {{publishedDay}}
{{publishedYear}}
Citation:
{{concatenatedAuthors}}, {{publishedYear}}
` export default function(dom, data) { let el = dom.querySelector('dt-byline'); if (el) { el.innerHTML = html + mustache.render(template, data); } }