UNPKG

can

Version:

MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.

28 lines (21 loc) 532 B
<div id='out'></div> <script id="source-template" type="text/stache"> <header> <my-greeting> {{site}} - {{title}} </my-greeting> </header> </script> <script src="../../node_modules/steal/steal.js" main="@empty"></script> <script> steal("can/component","can/view/stache",function(){ can.Component({ tag: "my-greeting", template: can.stache("<h1><content/></h1>"), viewModel: { title: "can.Component" } }); $("#out").html( can.view("source-template",{site: "CanJS"}) ); }) </script>