const html = require('choo/html') module.exports = view function view (state, emit) { var song = state.songs.find(song => song.title == state.params.song.replace(/-/g,' ')) console.log({song}) return html`

${song.title}

${song.post.map(function (post){ return html`

${post}

`})}
x close x
` function close () { emit('close',song.title) } }