« get me outta code hell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
export default { extraDependencies: ['html'], slots: { content: {type: 'html'}, class: { validate: v => v.oneOf(v.isString, v.sparseArrayOf(v.isString)), }, }, generate(slots, {html}) { return html.tag('nav', { [html.onlyIfContent]: true, id: 'secondary-nav', class: slots.class, }, slots.content); }, };