title: About using jinja templating in JS file
body: <p>I have been using a template in which there's images of previous and next button is in JavaScript file. The Framework I'm using is Django, is there any solution to use jinja templating/rendering for these images in JS file.</p>
  <p>JS code:</p>
  <pre><code>$(&quot;.active-banner-slider&quot;).owlCarousel({
          items:1,
          autoplay:false,
          autoplayTimeout: 5000,
          loop:true,
          nav:true,
          navText:[&quot;&lt;img src={% static 'img/banner/prev.png' &gt;&quot;,&quot;&lt;img src={% static 'img/banner/next.png' %}&gt;&quot;],
          dots:false
      });
  </code></pre>
  <p>I used same static method with html files and it worked, I don't know if this method does even work with JS file or not? if it does what would be the correct way?</p>