CanJS jQuery Template

Includes jQuery, CanJS and all of its plugins. Use it as a starting point when you want to demo something.

HTML

<script src="http://canjs.us/release/latest/can.jquery.js"></script>
<script src="http://canjs.us/release/latest/can.view.mustache.js"></script>
  <script id="template" type="text/mustache">
    <div>
        {{#foo}}haha{{/foo}}
    </div>
  </script>

CSS

div { font: 22px "Lucida Grande", Verdana, sans-serif; border: 2px dotted orange; border-radius: 10px; padding: 20px; margin: 10px }

JavaScript

var template = can.view("#template", {
    foo: 1
    });
$(document.body).append(template);