title: Set temporary variable and reuse it further down in pug template
body: <p>I am trying to pass along some values from my nodejs/express backend into the template (using <em>res.render({...})</em>), store it in some variables, then pass it further up until the front end (The usecase is that I need to do some mild calculation on the passed values and stored them in some intermediate variables)</p>
  
  <p>I know I can do this in the pug file</p>
  
  <pre><code>block append script
    script.
      const foo = parseInt(#{stat.get('fooStat')}, 10);
  </code></pre>
  
  <p>But then later it seems that I can not refer to this later in my pug template, say here </p>
  
  <pre><code>  span #{foo}
  </code></pre>
  
  <p>The value is empty, I guess because it is undefined... What's the usual way to accomplish that.</p>