Permalink
Browse files

Fixed whitespace example

  • Loading branch information...
1 parent a37305e commit 35d00d2f431b09596fab153dec618d31bb5be909 @tj tj committed Sep 26, 2011
Showing with 6 additions and 6 deletions.
  1. +1 −1 examples/whitespace.jade
  2. +5 −5 examples/whitespace.js
@@ -1,4 +1,4 @@
-- var js = '<script></script>'
+js = '<script></script>'
!!! 5
html
@@ -3,9 +3,9 @@
* Module dependencies.
*/
-var jade = require('./../lib/jade');
+var jade = require('./../')
+ , path = __dirname + '/whitespace.jade'
+ , str = require('fs').readFileSync(path, 'utf8')
+ , fn = jade.compile(str, { filename: path, pretty: true });
-jade.renderFile(__dirname + '/whitespace.jade', {debug:true},function(err, html){
- if (err) throw err;
- console.log(html);
-});
+console.log(fn());

0 comments on commit 35d00d2

Please sign in to comment.