const templates = [ { name: 'Blog Post', file: 'blog-post.md', description: 'Article with frontmatter' }, { name: 'Meeting Notes', file: 'meeting-notes.md', description: 'Agenda, notes, action items' }, { name: 'Technical Spec', file: 'technical-spec.md', description: 'Requirements and architecture', }, { name: 'Changelog', file: 'changelog.md', description: 'Keep a Changelog format' }, { name: 'README', file: 'readme.md', description: 'Project documentation' }, { name: 'Project Plan', file: 'project-plan.md', description: 'Goals, milestones, timeline' }, { name: 'API Docs', file: 'api-docs.md', description: 'API endpoint documentation' }, { name: 'Tutorial', file: 'tutorial.md', description: 'Step-by-step guide' }, { name: 'Release Notes', file: 'release-notes.md', description: 'Version release summary' }, { name: 'Comparison', file: 'comparison.md', description: 'Feature comparison table' }, ]; function renderTemplatesPanel(container, onSelect) { container.innerHTML = `
${templates .map( (t) => `
${t.name}
${t.description}
` ) .join('')}
`; container.querySelectorAll('.template-item').forEach((el) => { el.addEventListener('click', () => onSelect(el.dataset.file)); }); } module.exports = { renderTemplatesPanel, templates };