Skip to content

Commit

Permalink
Fixed whitespace example
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Sep 26, 2011
1 parent a37305e commit 35d00d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/whitespace.jade
@@ -1,4 +1,4 @@
- var js = '<script></script>'
js = '<script></script>'
!!! 5
html

Expand Down
10 changes: 5 additions & 5 deletions examples/whitespace.js
Expand Up @@ -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.