Revision 623330353861 () - Diff

Link to this snippet: https://friendpaste.com/KSbu4xgvVzrpqXwq8W3Yh
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>xycodex</title>

<script src="../libs/sizzle.js"></script>
<script src="../libs/pure2.js"></script>
</head>
<body>

<ul><li><a></a></li></ul>
<script>
(function(){
var
html = $p( 'ul' ),
data = {
'cat':'miaow',
'dog':'warf',
'mouse':'krrr'
},
directive = {
'@class':'"myClass"',
'li':{
'animal<-':{
'a':'animal',
'a@href':function(a){
return a.pos;
},
'@class':'animal'
}
}
};
html = html.render( data, directive );
}());

</script>
</body>
</html>