title: jinja2.exceptions.TemplateAssertionError: no filter named 'raw'
body: <p>While executing the below simple code in python i am getting <code>jinja2.exceptions.TemplateAssertionError</code> always.</p>
  <p>Looks like filter 'raw' is not defined.</p>
  <p><strong>I was expecting the output like <code>{&quot;dns&quot;:[&quot;8.8.8.8&quot;, &quot;8.8.4.4&quot;]}</code></strong></p>
  <p>Any help would be appreciated.</p>
  <pre class="lang-py prettyprint-override"><code>from jinja2 import Template
  import json, sys
  from jinja2 import Template
  
  OBJ = {&quot;steps&quot;:[{&quot;elements&quot;:[{}]}]}
  OBJ['steps'][0]['elements'][0].update({'dns': '8.8.8.8,8.8.8.4'})
  op = &quot;{\&quot;dns\&quot;:[\&quot;{{steps[0].elements[0].dns|join('&quot;,&quot;')|raw}}\&quot;}}\&quot;]}&quot;
  template = Template(json.dumps(op))
  payload= template.render(steps=OBJ['steps'])
  print(payload)
  sys.exit(1)
  </code></pre>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/rashtrapathy/jj.py&quot;, line 9, in &lt;module&gt;
      template = Template(json.dumps(service_template_output))
    File &quot;/usr/local/lib/python3.5/dist-packages/jinja2/environment.py&quot;, line 1031, in __new__
      return env.from_string(source, template_class=cls)
    File &quot;/usr/local/lib/python3.5/dist-packages/jinja2/environment.py&quot;, line 941, in from_string
      return cls.from_code(self, self.compile(source), globals, None)
    File &quot;/usr/local/lib/python3.5/dist-packages/jinja2/environment.py&quot;, line 638, in compile
      self.handle_exception(source=source_hint)
    File &quot;/usr/local/lib/python3.5/dist-packages/jinja2/environment.py&quot;, line 832, in handle_exception
      reraise(*rewrite_traceback_stack(source=source))
    File &quot;/usr/local/lib/python3.5/dist-packages/jinja2/_compat.py&quot;, line 28, in reraise
      raise value.with_traceback(tb)
    File &quot;&lt;unknown&gt;&quot;, line 1, in template
  jinja2.exceptions.TemplateAssertionError: no filter named 'raw'
  </code></pre>