1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml">
7
<script src="debug.js"></script>
8
<script src="../domplate.js"></script>
14
{firstName: 'Bob', lastName: 'Jones', buds: ['A', 'B', 'C']},
15
{firstName: 'Fred', lastName: 'Smith', buds: ['A', 'B', 'C']},
16
{firstName: 'Hugo', lastName: 'Britos', buds: ['A', 'B', 'C']}
25
PEOPLE.insertAfter(args, $("first"));
30
DIV({_firstName: '$who.firstName'}, 'I am $who.firstName $who.lastName'),
31
FOR('bud', '$who.buds',
39
TAG(DUDE, {who: "$peep"})
42
FOR('section', '$sections',
45
TAG(DUDE, {who: "$peep"})
48
P({id: "dude", _blah: "$blah"}, "Got object?")
51
window.addEventListener("load", runTest, false);
53
function formatCaption(text)
55
return "(" + text + ")"
63
<div id="first">===</div>
64
<div id="last">---</div>