Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed whitespace example

  • Loading branch information...
commit 35d00d2f431b09596fab153dec618d31bb5be909 1 parent a37305e
@tj tj authored
Showing with 6 additions and 6 deletions.
  1. +1 −1  examples/whitespace.jade
  2. +5 −5 examples/whitespace.js
View
2  examples/whitespace.jade
@@ -1,4 +1,4 @@
-- var js = '<script></script>'
+js = '<script></script>'
!!! 5
html
View
10 examples/whitespace.js
@@ -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());
Please sign in to comment.
Something went wrong with that request. Please try again.