5 lines
141 B
JavaScript
5 lines
141 B
JavaScript
|
exports.render = function(data) {
|
||
|
return `<ul>
|
||
|
${data.posts.map(post => `<li>${post.data.title}</li>`).join("\n")}
|
||
|
</ul>`;
|
||
|
};
|