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

allow advanced templates in repeat blocks #81

Merged
merged 1 commit into from Mar 11, 2020

Conversation

nineinchnick
Copy link
Collaborator

Allows to call methods on items in repeat blocks (notice item.target.display_name:call):

{findings:repeat:|{{item.target.display_name:call}}|{{item.id}}|{{item.description}}|{{item.severity}}|{{item.details}}|{{item.mitigations}}|{{item.example}}|{{item.references}}
}

We could use the property decorator but there's no reason why the slightly more advanced template format shouldn't be supported in the repeat block.

@nineinchnick nineinchnick requested a review from izar as a code owner March 5, 2020 13:48
@ghost
Copy link

ghost commented Mar 5, 2020

Congratulations 🍻. DeepCode analyzed your code in 0.102 seconds and we found no issues. Enjoy a moment of no bugs ☀️.

💬 This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues.


☺️ If you want to provide feedback on our bot, here is how to contact us.

@izar izar merged commit 6c928ec into izar:master Mar 11, 2020
@izar
Copy link
Owner

izar commented Mar 11, 2020

Thanks!

@nineinchnick nineinchnick deleted the formatter-subtemplate branch March 12, 2020 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants