CivicActions / secrender

Now incorporated into SSP Toolkit
https://github.com/CivicActions/ssp-toolkit
GNU General Public License v3.0
0 stars 1 forks source link

top level keys for jinja2 yaml file #2

Closed openprivacy closed 4 years ago

openprivacy commented 4 years ago

Capturing @woodt notes from a side conversation:

We could change secrender to create Jinja2 variables for every top-level key in the YAML file, and get rid of the root variable idea. The -r option could hang around as a way of renaming variables as opposed to a way to specify the root variable.

Then we could reference {{contractor.name_short}} from a file like:

project:
  name_short: Example Project

contractor:
  name_short: Example
  support_email: support@example.com
openprivacy commented 4 years ago

Looks like @woodt did this in https://github.com/CivicActions/secrender/tree/add_output_option but the README.md is corrupted...

Recommend cleaning the README and merging into master