examples/view/xtemplate.html
[roojs1] / examples / view / xtemplate.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4     <link rel="stylesheet" type="text/css" href="../../cssX/roojs-all.css"/>
5     <link rel="stylesheet" type="text/css" href="../../cssX/xtheme-slate.css"/>
6
7     <script type="text/javascript" src="../../roojs-all.js"></script>   
8     <script type="text/javascript" src="../../Roo/XTemplate.js"></script>   
9   
10
11 <script type="text/javascript">
12     
13 Roo.onReady(function() {
14     
15     var tpl = new Roo.XTemplate({
16        html : '<li>{pa.format:("Y-m-d")}<li>' 
17         
18     });
19     
20     tpl.append(Roo.get('body'), {
21         pa : new Date() 
22     });
23      
24 });
25      
26      
27 </script>
28
29 </head>
30 <body>
31     <div id="body"></div> 
32 </body>
33 </html>