<% ctx.test = 1; %>
<%= JSON.stringify(ctx) %>
<%? setTimeout(function () { res.print("Async1"); res.finish(); }, 400) %>
<%? setTimeout(function () { res.print("Async2"); res.finish(); }, 100) %>
<% res.schedule(function (res) {setTimeout(function () { %>Async3<% res.finish(); }, 300)}); %>
<% res.partial("partial_root_test.js.html", { hello: "world" }); %>
<%? setTimeout(function () {
res.print("Async4");
res.partial("partialStatic.js.html")
.addCallback(function () {
res.finish();
})
}, 200) %>