title: CLNDR.js pass variable into underscore.js
body: <p>I have created a calendar with CLNDR.js. Everything works very well but I want to pass the selected date into Underscore to show only the events day.</p>
  
  <p>Part of my clndr html:</p>
  
  <pre><code>&lt;div class="events-list"&gt;
      &lt;% _.each(eventsThisMonth, function(event) { %&gt;
  
          &lt;!--&lt;% if (event.date == selectedDate) { %&gt;--&gt;
  
              &lt;div class="event"&gt;
                  &lt;a href="&lt;%= event.url %&gt;"&gt;. &lt;%= event.location %&gt;&lt;/a&gt;
              &lt;/div&gt;
  
          &lt;!--&lt;% } %&gt;--&gt;
  
      &lt;% }); %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Script:</p>
  
  <pre><code>$(window).load(function(){
  
  $('#mini-clndr').clndr({
      template: $('#calendar').html(),
      events: events,
  
      clickEvents: {
          click: function(target) {
              if(target.events.length) {
  
                  var selectedDate = target.date['_i'];
  
                  var controls = $('#mini-clndr').find('.controls');                          
                  var daysContainer = $('#mini-clndr').find('.days-container');
                  var eventsContainer = $('#mini-clndr').find('.events');
  
                  controls.slideUp( "slow" );
                  daysContainer.slideUp( "slow" );
                  eventsContainer.slideDown( "slow" );
  
                  $('#mini-clndr').find('.x-button').click( function() {
                      controls.slideDown( "slow" );
                      daysContainer.slideDown( "slow" );
                      eventsContainer.slideUp( "slow" );
                  });
  
              }
  
          }
      },
  
      adjacentDaysChangeMonth: false
  
    });
  });
  </code></pre>
  
  <p>Someone can help me? It's the first time I use Underscore.js</p>