Feature #18143
Snippet macros should support passing variables
Pull request:
Fixed in Releases:
Found in Releases:
Description
It would be good to have option to pass variables to snippets, otherwise it's impossible to reuse snippets with different variables with safe mode. E.g. we could have a snippet for rendering NIC configuration which repeats in the template several times.
Related issues
Associated revisions
Refs #18143 - extend snippet_if_exists too
History
#1
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4205 added
#2
Updated by The Foreman Bot over 5 years ago
- Pull request https://github.com/theforeman/foreman/pull/4206 added
#3
Updated by Anonymous over 5 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset a90eae17d2c22e3dbe36449bca44be38b31e5b1b.
#4
Updated by Dominic Cleal over 5 years ago
- Legacy Backlogs Release (now unused) set to 209
#5
Updated by Marek Hulán over 5 years ago
- Related to Bug #18227: Snippet with variables does not reset @vars after they finish in unsafe mode added
Fixes #18143 - enable variables for snippets (#4205)