Files: 890b63ba1d9f369041e099ec9f54c6f9e8ce289d / views / song.js
498 bytesRaw
1 | const html = require('choo/html') |
2 | |
3 | module.exports = view |
4 | |
5 | function view (state, emit) { |
6 | var song = state.songs.find(song => song.title == state.params.song.replace(/-/g,' ')) |
7 | console.log({song}) |
8 | return html` |
9 | <div class='wrapper'> |
10 | <div id='track' class='paper'> |
11 | <h1>${song.title}</h1> |
12 | <div id='text'> |
13 | ${song.post.map(function (post){ return html`<p>${post}</p>`})} |
14 | </div> |
15 | <a href='#songbook'>x close x</a> |
16 | </div> |
17 | </div> |
18 | ` |
19 | } |
20 |
Built with git-ssb-web