Skip to content

Conversation

@Lurkerpas
Copy link
Contributor

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements template instantiation functionality (MBEP#313) using the Mako templating engine to generate documentation from TASTE system models.

Key Changes:

  • Introduces TemplateInstantiator class for processing Mako templates with Interface View, Deployment View, and System Object data
  • Enhances CLI with support for multiple templates, system objects, and custom values
  • Adds requirement traceability support by extending IV model with requirement_ids fields

Reviewed changes

Copilot reviewed 35 out of 36 changed files in this pull request and generated 14 comments.

Show a summary per file
File Description
templateprocessor/templateinstantiator.py New class implementing Mako template instantiation with IV/DV/SO context
templateprocessor/cli.py Extended CLI with template processing arguments and file I/O operations
templateprocessor/iv.py Added requirement_ids fields and new language types (GUI, Blackbox_C)
templateprocessor/ivreader.py Parses requirement_ids and comment attributes from XML
tests/test_templateinstantiator.py Comprehensive test suite covering template instantiation scenarios
tests/test_ivreader.py Additional tests for requirement_ids parsing
setup.py Added Mako 1.3.10 dependency
data/ecss-template/*.tmplt ECSS documentation templates for architecture and traceability
examples/*.tmplt Example templates for system objects, deployment, and requirements
examples/demo-project/* Demo project with IV/DV XML files for testing template generation
examples/*.sh Shell scripts demonstrating template processor usage with pandoc

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Lurkerpas Lurkerpas requested a review from Ficzer December 11, 2025 12:05
@Lurkerpas Lurkerpas merged commit 5b4ecdf into main Dec 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants