UNPKG

259 BJavaScriptView Raw
1module.exports = function (list) {
2 let template = "<ul><li><a href='../'>..</a></li>";
3 for (let index in list) {
4 template += "<li><a href='" + list[index].url + "'>" + list[index].url + "</a></li>";
5 }
6 return template + "<ul>";
7};
\No newline at end of file