1 <html> 2 <head><title>Address Book Using Jstemplates</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 function jsinit() { 8 var mydata = {end: 'Bar'}; 9 var context = new JsEvalContext(mydata); 10 var template = document.getElementById('out'); 11 jstProcess(context, template); 12 } 13 </script> 14 <link rel="stylesheet" type="text/css" href="css/maps2.deb.css"/> 15 </head> 16 <body onload="jsinit()"> 17 18 <div id="out"> 19 <div id="Food" jsvalues=".id:'Joe';.style.fontSize:'30pt'" jscontent="this.parentNode.id + this.id + $this.end"></div> 20 </div> 21 22 </body> 23 </html> 24