title: Django add a variable value into {%static 'path' %}
body: <p>In my django project i have to add a prefix into some path defined with %static like this:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="{% static "css/animate.css" %}"&gt;
  </code></pre>
  
  <p>I have to add the {{ subpath }} value passed from my view, i try this:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="{% static "{{ subpath }}/css/animate.css" %}"&gt;
  </code></pre>
  
  <p>but the variable was implemented like a text, also i tried:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="{% static {{ subpath }}"/css/animate.css" %}"&gt;
  </code></pre>
  
  <p>but an error occurred.</p>
  
  <p>How can i add a variable value into my href correctly?</p>