title: pass reversed url to knockout.js model
body: <p>I got <strong>django template</strong> with <strong>knockout.js</strong> bindings, with list which is should be filled as one press  button:</p>
  
  <pre><code>&lt;ul data-bind="foreach: items"&gt;
     &lt;li data-bind="text: title"&gt;&lt;li&gt;
  &lt;/ul&gt;
  &lt;button data-bind="click: fillList"&gt;Show&lt;/button&gt;
  </code></pre>
  
  <p>and some knockout model:</p>
  
  <pre><code>function ItemsModel() {
      var self = this;
      self.items = ko.observableArray();
  
      self.fillList = function() {
          // some download data logic
          ...
      }
  }
  </code></pre>
  
  <p>Functon <strong>fillList</strong> gets data from server. It should send request to url. I use reversed url:</p>
  
  <pre><code>{% url "app.views.get_items" %}
  </code></pre>
  
  <p>What is the best way to pass that <strong>template-generated url</strong> to <strong>ItemsModel</strong>, so it knows where it should get the data?</p>
  
  <p>Pass it as parameter to model?</p>
  
  <pre><code>function ItemsModel(url_get_items) {
       ...
  }
  </code></pre>
  
  <p>Maybe pass it as parameter with click event?</p>
  
  <pre><code>&lt;button data-bind="click: function() { fillList('{% url "app.views.get_items" %}') }"&gt;
  </code></pre>
  
  <p>Or use submit binding instead?</p>
  
  <pre><code>&lt;form action="{% url "app.views.get_items" %}" data-bind="submit: fillList"&gt;
      &lt;button type="submit"&gt;Show&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Something else? Is there any best way?</p>