Update some Mac Bluetooth TODOs.
[chromium-blink-merge.git] / third_party / jstemplate / tutorial_examples / 04-jscontent.html
blobb264f3f2e57f218562a132103449ff13f2025310
1 <html>
2 <head><title>Jstemplates: Quick example</title>
3 <script src="../util.js" type="text/javascript"></script>
4 <script src="../jsevalcontext.js" type="text/javascript"></script>
5 <script src="../jstemplate.js" type="text/javascript"></script>
6 <script type="text/javascript">
7 var tplData = "Joe User";
9 function showData() {
10 // This is the javascript code that processes the template:
11 var input = new JsEvalContext(tplData);
12 var output = document.getElementById('tpl');
13 jstProcess(input, output);
15 </script>
16 </head>
17 <body onload="showData()">
19 <!--
20 This is the template:
21 -->
22 <div id="tpl">
23 Welcome <span jscontent="$this">
24 (This placeholder name will be replaced by the actual username.)
25 </span>
26 </div>
28 </body>
29 </html>