(config)
| 40 | } |
| 41 | |
| 42 | function mainTpl(config) { |
| 43 | let html = `<nav class="app-nav${ |
| 44 | config.repo ? '' : ' no-badge' |
| 45 | }"><!--navbar--></nav>`; |
| 46 | |
| 47 | if (config.repo) { |
| 48 | html += tpl.corner(config.repo); |
| 49 | } |
| 50 | |
| 51 | if (config.coverpage) { |
| 52 | html += tpl.cover(); |
| 53 | } |
| 54 | |
| 55 | html += tpl.main(config); |
| 56 | |
| 57 | return html; |
| 58 | } |
| 59 | |
| 60 | export default class Renderer { |
| 61 | constructor({ template, config, cache }) { |
no test coverage detected
searching dependent graphs…