-
Notifications
You must be signed in to change notification settings - Fork 574
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
Improved documentation around custom templating #955
Comments
((trying to create / add a column to their report is basically at the mercy of god.)): AKumar, I agree. |
It's possible expanded templating documentation could live in its own readme (e.g. |
OUTPUT_TEMPLATES.md : |
HI @gh-greg and @kzantow thanks for that. I did go through the section mentioned in current README. |
@AbhigyanKumarTrellix -- the one notable difference I left out between the JSON output and the Go templates: the variable names are all uppercase in the Go templates. So If so, this might get what you're looking for:
(EDIT: I just read you're looking for HTML, I suspect you could adapt this above to HTML?) |
Since this issue was filed we have improved the documentation around Grype templates and published some examples in the templates directory (https://github.com/anchore/grype/tree/main/templates) -- I'll close this issue but please feel free to open another one if you have any more specific suggestions or requests. Thanks! |
As of now the only real information that is given in readme around custom output templates is the CSV template example. Anyone trying to create / add a column to their report is basically at the mercy of god. For eg, trying to figure out the "Name" for "dataSource" is bad.
Please add at least a list /table indicating all the possible mappings /words that can be used as a header for custom templates.
Why is this needed:
A better user experience and easier custom templating
Additional context:
The text was updated successfully, but these errors were encountered: