title: Load a different TPL according to window width
body: <p>I try to load a different TPL according to the window width (or I can also set a variable).
  So, I suppose I can use a code like that or get at least 2 different kind of window:</p>
  
  <p>Basically, this is the result I would like to have:</p>
  
  <pre><code>if($(window).width() &lt; 960){
    include file="small.tpl"
  };
  
  else{
   include file="big.tpl"
  };
  </code></pre>
  
  <p>or something like that:</p>
  
  <pre><code>if ($(window).width() &lt; 960) 
     {assign var="numcolumns" value="1"};
  
  else 
    {assign var="numcolumns" value="2"};
  </code></pre>
  
  <p>Any easy suggestion?</p>