Skip to content

Commit

Permalink
fixes #1, upgrading to latest jade
Browse files Browse the repository at this point in the history
  • Loading branch information
dbashford committed Mar 27, 2014
1 parent 9e19819 commit b812033
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jade:
extensions: [ "jade" ]
```

* `lib`: You may want to use this module but may not be ready to use the latest version of Jade. Using the `lib` property you can provide a specific version of Jade if the one being used by this module isn't to your liking. To provide a specific version, you must have it `npm install`ed into your project and then provide it to `lib`. For instance: `lib: require('jade')`.
* `extensions`: an array of strings, the extensions of your Jade files.
* `lib`: You may want to use this module but may not be ready to use the latest version of Jade. Using the `lib` property you can provide a specific version of Jade if the one being used by this module isn't to your liking. To provide a specific version, you must have it `npm install`ed into your project and then provide it to `lib`. For instance: `lib: require('jade')`. To use a version of jade prior to `1.0`, use mimosa-jade `1.0.1`.
* `extensions`: an array of strings, the extensions of your Jade files.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mimosa-jade",
"version": "1.0.1",
"version": "2.0.0",
"homepage": "https://github.com/dbashford/mimosa-jade",
"author": "David Bashford",
"description": "A Jade client template compiler for Mimosa 2.0+",
Expand All @@ -21,7 +21,7 @@
"jade"
],
"dependencies": {
"jade": "0.35.0"
"jade": "1.3.0"
},
"license": "MIT",
"main": "./src",
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ var compile = function ( mimosaConfig, file, cb ) {
try {
var opts = {
compileDebug: false,
client: true,
filename: file.inputFileName
};

output = mimosaConfig.jade.lib.compile( file.inputFileText, opts);
output = mimosaConfig.jade.lib.compileClient( file.inputFileText, opts);
} catch ( err ) {
error = err;
}
Expand Down

0 comments on commit b812033

Please sign in to comment.