oscal-compass / compliance-trestle

An opinionated tooling platform for managing compliance as code, using continuous integration and NIST's OSCAL standard.
https://oscal-compass.github.io/compliance-trestle
Apache License 2.0
163 stars 62 forks source link

Allow preprocessing of trestle author *-assemble markdown documents with jinja #814

Open butler54 opened 2 years ago

butler54 commented 2 years ago

Issue description / feature objectives

As a user of trestle who wants to execute complex document assembly workflows. As in #811 the proposed mechanism for doing this is jijna. Which allows for three primary mechanisms which are targeted; however more may be used:

  1. Inline inclusion of external files
  2. Gating of content sections
  3. Potential use of simple inbuilt vars (time stamps etc).

To do this it would require adding

  1. A --jinja tag to enable pre-processing
  2. A --jinja-boolean=var_name enabling users to pass a boolean variable = True to the jinja pre-processor.
butler54 commented 2 years ago

@fsuits This might be one to divide and conquer.

fsuits commented 2 years ago

@enikonovad is there any current functionality for this?

rahearn commented 2 weeks ago

This may be a potential solution for the problem in #1707 by pre-processing the jinja tags on assemble, rather than leaving them for author jinja