UNPKG

can

Version:

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

17 lines (15 loc) 448 B
<!doctype html> <html> <body> <script src="../../../node_modules/steal/steal.js" main="@empty"></script> <script> steal('jquery', 'can/view/bindings', 'can/view/stache', function($) { var observableText = can.compute('Hello World!'); $('body').html(can.stache('<textarea can-value="{observableText}"></textarea>' + '<p>{{observableText}}</p>')({ observableText: observableText })); }); </script> </body> </html>