title: Twig - Append string data to same variable
body: <p>How would you append more data to the same variable in Twig? For example, this is what I'm trying to do in Twig:</p>
  
  <pre><code>var data = "foo";
  data += 'bar';
  </code></pre>
  
  <p>I have figured out that <code>~</code> appends strings together in Twig. When I try <code>{% set data ~ 'foo' %}</code> I get an error in Twig.</p>