<% var async = require('async'); async.waterfall([ function (callback) { //dummy function to show we can use any module with JsStencil //we render a header here %> <% require('./header.jss'); %> JsStencil - Page 2 <% callback(null); }, function (callback) { //another dummy function to show we can use any module with JsStencil //we render the a body here %> <% require('./toptoolbar.jss'); %>
<% for (var i = 0; i < 10; i++) { %>

Value of I = <%= htmlentities(i.toString()) %> - RandomInt(100,200) = <%= htmlentities(randomInt(100, 200).toString()) %>

<% } %>
<% require('./footer.jss'); %> <% callback(null); }, function (callback) { //now we render close html tag %> <% callback(null); } ], function (err, result) { done(err); }); %>