-
Notifications
You must be signed in to change notification settings - Fork 0
Feature MBEP#313 template instantiation #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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
TemplateInstantiatorclass 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_idsfields
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.
No description provided.