Answers.Body: <p>You forgot to remove the outer single quotes in your first example</p>
  
  <pre><code>&lt;iron-media-query query="(min-width: 600px)" query-matches="{{'{{queryMatches}}'}}"&gt;
  </code></pre>
  
  <p>Try the <code>raw</code> filter if that doesnt work. More info on it <a href="http://twig.sensiolabs.org/doc/filters/raw.html" rel="nofollow">here</a> </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-24T20:39:24.500Z
Answers.LastActivityDate: 2015-07-24T20:39:24.500Z
Answers.UserDisplayName: Seán O'Grady
Body: <p>I've encountered on a problem with escaping, where I want some parts of code, not being translated by Twig.</p>
  
  <p>Straight to the problem.</p>
  
  <p><a href="https://elements.polymer-project.org/elements/iron-media-query" rel="nofollow">Polymer</a>, uses the same marking for variables as Twig, and I'm not sure, if it's possible to escape variable as a Twig's variable and transform it to a Polymer's variable</p>
  
  <p>By Twig's documentation, I've end up with this:</p>
  
  <pre><code>&lt;iron-media-query query="(min-width: 600px)" query-matches="'{{'{{queryMatches}}'}}'"&gt;
  </code></pre>
  
  <p></p>
  
  <p>where it translates to:</p>
  
  <pre><code>&lt;iron-media-query query="(min-width: 600px)" query-matches="'{{queryMatches}}'"&gt;&lt;/iron-media-query&gt;
  </code></pre>
  
  <p>The goal is:</p>
  
  <pre><code>&lt;iron-media-query query="(min-width: 600px)" query-matches="{{queryMatches}}"&gt;&lt;/iron-media-query&gt;
  </code></pre>
  
Tags: <escaping>
Title: Ignore Twig's variable and transform it to Polymer's variable.
ThreadText: # Ignore Twig's variable and transform it to Polymer's variable.
  
  (Asked by: username_0 on 2015-07-24)
  
  I've encountered on a problem with escaping, where I want some parts of code, not being translated by Twig.
  
  Straight to the problem.
  
  [Polymer](https://elements.polymer-project.org/elements/iron-media-query), uses the same marking for variables as Twig, and I'm not sure, if it's possible to escape variable as a Twig's variable and transform it to a Polymer's variable
  
  By Twig's documentation, I've end up with this:
  
  ```
  <iron-media-query query="(min-width: 600px)" query-matches="'{{'{{queryMatches}}'}}'">
  
  ```
  
  where it translates to:
  
  ```
  <iron-media-query query="(min-width: 600px)" query-matches="'{{queryMatches}}'"></iron-media-query>
  
  ```
  
  The goal is:
  
  ```
  <iron-media-query query="(min-width: 600px)" query-matches="{{queryMatches}}"></iron-media-query>
  
  ```
  
  **Tags:** escaping
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-07-24. Score: 2 | Accepted answer
  
  You forgot to remove the outer single quotes in your first example
  
  ```
  <iron-media-query query="(min-width: 600px)" query-matches="{{'{{queryMatches}}'}}">
  
  ```
  
  Try the `raw` filter if that doesnt work. More info on it [here](http://twig.sensiolabs.org/doc/filters/raw.html)
  
  
  ---
  
  