diff options
Diffstat (limited to 'third_party/jstemplate/tutorial_examples/09-jsvalues.html')
-rw-r--r-- | third_party/jstemplate/tutorial_examples/09-jsvalues.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/third_party/jstemplate/tutorial_examples/09-jsvalues.html b/third_party/jstemplate/tutorial_examples/09-jsvalues.html new file mode 100644 index 0000000..9267846 --- /dev/null +++ b/third_party/jstemplate/tutorial_examples/09-jsvalues.html @@ -0,0 +1,23 @@ +<html> +<head><title>Address Book Using Jstemplates</title> + <script src="../util.js" type="text/javascript"></script> + <script src="../jsevalcontext.js" type="text/javascript"></script> + <script src="../jstemplate.js" type="text/javascript"></script> + <script type="text/javascript"> + function jsinit() { + var mydata = {end: 'Bar'}; + var context = new JsEvalContext(mydata); + var template = document.getElementById('out'); + jstProcess(context, template); + } + </script> + <link rel="stylesheet" type="text/css" href="css/maps2.deb.css"/> +</head> +<body onload="jsinit()"> + +<div id="out"> +<div id="Food" jsvalues=".id:'Joe';.style.fontSize:'30pt'" jscontent="this.parentNode.id + this.id + $this.end"></div> +</div> + +</body> +</html> |