Project

General

Profile

Feature #18143

Snippet macros should support passing variables

Added by Marek Hulán almost 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
Difficulty:
Triaged:
Bugzilla link:

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

Related to Foreman - Bug #18227: Snippet with variables does not reset @vars after they finish in unsafe modeClosed2017-01-24

Associated revisions

Revision a90eae17 (diff)
Added by Marek Hulán almost 5 years ago

Fixes #18143 - enable variables for snippets (#4205)

Revision da7ce87a (diff)
Added by Marek Hulán almost 5 years ago

Refs #18143 - extend snippet_if_exists too

History

#1 Updated by The Foreman Bot almost 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 almost 5 years ago

  • Pull request https://github.com/theforeman/foreman/pull/4206 added

#3 Updated by Anonymous almost 5 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal almost 5 years ago

  • Legacy Backlogs Release (now unused) set to 209

#5 Updated by Marek Hulán almost 5 years ago

  • Related to Bug #18227: Snippet with variables does not reset @vars after they finish in unsafe mode added

Also available in: Atom PDF