UNPKG

can

Version:

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

35 lines (32 loc) 1.03 kB
<!doctype html> <html> <head> <meta http-equiv="x-ua-compatible" content="IE=Edge"/> <script type="text/javascript" src="../../../bower_components/modernizr/modernizr.js"></script> </head> <body> <script> window.isReady = window.parent.isReady || function(el) { console.log(el.length); console.log(el.html()); }; window.hasError = window.parent.hasError || function(error) { console.log("error in autoload", error) }; window.removeMyself = window.parent.removeMyself; </script> <script type="text/stache" id="basics"> <a can-href="{page='recipe' id=recipe.id}">{{recipe.name}}</a> </script> <script src='../../../node_modules/steal/steal.js' main='can/view/href/'></script> <script> steal('can', 'can/view/href', 'can/view/href/tests/steal-basics.js', function(can){ console.log(); $("body").html(can.view.mustache('<href-component>Test component</href-component>')); isReady($("body href-component"), can.viewModel('href-component'), function(){ can.route(":page/:id"); }); }); </script> </body> </html>