/pre>

  <h3>Create HTML manually</h3>

  The HTML for an item can be created manually:

<pre class="prettyprint lang-js">var options = {
  template: function (item, element, data) {
    return '&lt;h1&gt;' + item.header + data.moving?' '+ data.start:'' + '&lt;/h1&gt;&lt;p&gt;' + item.description + '&lt;/p&gt;';
  },
  onMoving: function (item, callback) {
    item.moving = true;
  }
};
</pre>

  <h3>Using a template engine</h3>

  Using <a href="http://handlebarsjs.com/">handlebars</a>, one can write the t