commenting example code
[nodejsws.git] / examples / simple / purls / justlayout.js
1 /*
2  *  this is an example of a purl that simply contains a layout and only a layout
3  *  
4  *  this is useful when you can do everything synchronously and just need to fling back
5  *  some content - if you tie layout to preRequest you can make preRequest determine
6  *  if you can simply use layout to push some simple html out and this simplifies the
7  *  whole request pipeline.
8  */
9
10
11 exports.layout = function(request, response) {
12         var tkl = "<html><body><h1>Just a Layout</h1>this purl is simply a layout";
13         tkl += " and nothing else!</body></html>";
14         
15         return tkl;
16 }