JSFiddle - React, Tailwind, and code Playground

by air_hadoken

HTML

<script src="http://canjs.com/release/latest/can.jquery.js"></script>
<script id="withtest" type="text/mustache">
    {{#with foo}}
        Foo.bar is {{bar}}.
    {{/with}}
</script>

JavaScript

$(function() {
    try {
    can.view("#withtest", new can.Map({ foo : { bar : "baz" }}), function(frag) {
        $(document.body).append(frag);
    });
    } catch(e) {
        $(document.body).append("Error was: " + e.message);
    }
});