Skip to content

Commit

Permalink
Fixed layout example
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Sep 26, 2011
1 parent 171c7ad commit 421594f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* Module dependencies.
*/

var jade = require('./../lib/jade');
var jade = require('./../')
, path = __dirname + '/layout.jade'
, str = require('fs').readFileSync(path, 'utf8')
, fn = jade.compile(str, { filename: path, pretty: true });

jade.renderFile(__dirname + '/layout.jade', function(err, html){
if (err) throw err;
console.log(html);
});
console.log(fn());

0 comments on commit 421594f

Please sign in to comment.