title: Passing variable value inside setcontent in bolt.cm
body: <p>I'm using a framework called bolt.cm. A simple framework based on silex. There is a twig function to get records of specific contenttype :</p>
  
  <pre><code>{% setcontent products = 'products' %}
  </code></pre>
  
  <p>To get record and order them by specific field :</p>
  
  <pre><code>{% setcontent products = 'products' orderby 'datepublish' %}
  </code></pre>
  
  <p>Above will fetch records ordered by datepublish field. Now, I wanted to pass the orderby field from  GET parameter. I store the GET parameter in a global twig variable which passed from the controller, defined as <code>sort_by</code> variable.</p>
  
  <pre><code>{{ sort_by }}
  </code></pre>
  
  <p>Above will print sort_by value into html. In page : <code>/products?sort_by=datepublish</code> will set <code>sort_by</code> value as <code>datepublish</code> Now I'm going to combine this variable into setcontent function as described below : </p>
  
  <pre><code>{% setcontent products = 'products' orderby sort_by %}
  </code></pre>
  
  <p>Now I'm getting error :</p>
  
  <pre><code>An exception has been thrown during the compilation of a template ("Attribute "value" does not exist for Node "Twig_Node_Expression_Name".") in "products.twig".
  </code></pre>
  
  <p>My question is simply, how to make sort_by recognized as a value inside that function ? Please don't tell me to do : </p>
  
  <pre><code>{% if sort_by == 'datepublish' %}
    {% setcontent products = 'products' orderby 'datepublish' %}
  {% elseif sort_by == 'another_field' %}
    {% setcontent products = 'products' orderby 'another_field' %}
  
  {# and so on for every single field #}
  
  {% endif %}
  </code></pre>