title: variable Twig in Javascript
body: <p>How can i pass {{app.user}} into Javascript ?</p>
  
  <p>for now I do a block like;</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var app_name = '{{ app_name }}';
      var app_url= '{{ app_url }}';
      var app_description= '{{ app_description }}';
      var app_email= '{{ app_email }}';
      var app_title= '{{ app_title }}';
      var app_dominio= '{{ app_dominio }}';
      var env = '{{ app.environment }}';
  &lt;/script&gt;
  </code></pre>
  
  <p>where these parameters are set in config.yml</p>