Skip to content

Commit

Permalink
Release 0.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Feb 2, 2012
1 parent 4c92049 commit e1c2544
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
5 changes: 5 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

0.20.1 / 2012-02-02
==================

* Fixed Block#includeBlock() with textOnly blocks

0.20.0 / 2011-12-28
==================

Expand Down
15 changes: 10 additions & 5 deletions jade.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,12 @@ module.exports = {
try {
md = require('markdown-js');
} catch (err) {
throw new Error('Cannot find markdown library, install markdown or discount');
try {
md = require('marked');
} catch (err) {
throw new
Error('Cannot find markdown library, install markdown, discount, or marked.');
}
}
}
}
Expand Down Expand Up @@ -695,7 +700,6 @@ module.exports = [
}); // module: inline-tags.js

require.register("jade.js", function(module, exports, require){

/*!
* Jade
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
Expand All @@ -715,7 +719,7 @@ var Parser = require('./parser')
* Library version.
*/

exports.version = '0.19.0';
exports.version = '0.20.1';

/**
* Expose self closing tags.
Expand Down Expand Up @@ -839,13 +843,13 @@ exports.compile = function(str, options){
fn = [
'var __jade = [{ lineno: 1, filename: ' + filename + ' }];'
, 'try {'
, parse(String(str), options || {})
, parse(String(str), options)
, '} catch (err) {'
, ' rethrow(err, __jade[0].filename, __jade[0].lineno);'
, '}'
].join('\n');
} else {
fn = parse(String(str), options || {});
fn = parse(String(str), options);
}

if (client) {
Expand Down Expand Up @@ -1777,6 +1781,7 @@ Block.prototype.includeBlock = function(){
for (var i = 0, len = this.nodes.length; i < len; ++i) {
node = this.nodes[i];
if (node.yield) return node;
else if (node.textOnly) continue;
else if (node.includeBlock) ret = node.includeBlock();
else if (node.block && !node.block.isEmpty()) ret = node.block.includeBlock();
}
Expand Down
4 changes: 2 additions & 2 deletions jade.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/jade.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var Parser = require('./parser')
* Library version.
*/

exports.version = '0.20.0';
exports.version = '0.20.1';

/**
* Expose self closing tags.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jade",
"description": "Jade template engine",
"version": "0.20.0",
"version": "0.20.1",
"author": "TJ Holowaychuk <tj@vision-media.ca>",
"repository": "git://github.com/visionmedia/jade",
"main": "./index.js",
Expand Down

0 comments on commit e1c2544

Please sign in to comment.