title: Replace and eval in Jinja
body: <p>I have a string like this as Jinja variable:</p>
  
  <pre><code>foo-VERSION-bar
  </code></pre>
  
  <p>I want to replace <code>VERSION</code> with <code>{{ grains.lsb_distrib_release }}</code> and I want this to get evaluated.</p>
  
  <p>if <code>grains.lsb_distrib_release</code> contains <code>123</code> I want the result to be <code>foo-123-bar</code>.</p>
  
  <p>How to replace <strong>and</strong> eval in jinja?</p>