examples/view/xtemplate.html
authorAlan Knowles <alan@akbkhome.com>
Sat, 7 Apr 2012 06:27:53 +0000 (14:27 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sat, 7 Apr 2012 06:27:53 +0000 (14:27 +0800)
examples/view/xtemplate.html [new file with mode: 0644]

diff --git a/examples/view/xtemplate.html b/examples/view/xtemplate.html
new file mode 100644 (file)
index 0000000..9c1a889
--- /dev/null
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+    <link rel="stylesheet" type="text/css" href="../../cssX/roojs-all.css"/>
+    <link rel="stylesheet" type="text/css" href="../../cssX/xtheme-slate.css"/>
+
+    <script type="text/javascript" src="../../roojs-all.js"></script>   
+    <script type="text/javascript" src="../../Roo/XTemplate.js"></script>   
+  
+
+<script type="text/javascript">
+    
+Roo.onReady(function() {
+    
+    var tpl = new Roo.XTemplate({
+       html : '<li>{pa.format:("Y-m-d")}<li>' 
+        
+    });
+    
+    tpl.append(Roo.get('body'), {
+        pa : new Date() 
+    });
+     
+});
+     
+     
+</script>
+
+</head>
+<body>
+    <div id="body"></div> 
+</body>
+</html>
\ No newline at end of file