Skip to content
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

Item matrix templates #11

Open
ociu opened this issue Apr 19, 2016 · 1 comment
Open

Item matrix templates #11

ociu opened this issue Apr 19, 2016 · 1 comment
Milestone

Comments

@ociu
Copy link
Owner

ociu commented Apr 19, 2016

As in #9, apply templates also to the item-matrix nodes, so that the whole table format can be customized, even not being presented as a table.

One of the consequences of using templates for item-matrix is that the item-list directive would be no longer necessary, as a particular template could be defined to show only one part of a traceability matrix as a list. This would also allow more complex lists, such as lists with sublists.

Template would not only have as input the related items, but also the implied relationships, so that relationships could be also shown in the output.

Example template: item matrix as is generated now:

.. list-table:: {{ title }}
   :header-rows: 1
   * - Source
     - Target
{% for line in table %}
   * - {{ line.source }}
     - {{ line.target }}
{% endfor %}

Another benefit is that this way, table generation code would be much, much simpler.

@ociu ociu added this to the 0.2.0 milestone Apr 19, 2016
@71mb0
Copy link

71mb0 commented Mar 28, 2017

I would also be greatly interested in this feature. Let me know, if I can give you some assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants