mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-13 03:02:49 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
21
node_modules/jade/lib/parser.js
generated
vendored
21
node_modules/jade/lib/parser.js
generated
vendored
@@ -233,6 +233,8 @@ Parser.prototype = {
|
||||
return this.parseEach();
|
||||
case 'code':
|
||||
return this.parseCode();
|
||||
case 'blockCode':
|
||||
return this.parseBlockCode();
|
||||
case 'call':
|
||||
return this.parseCall();
|
||||
case 'interpolation':
|
||||
@@ -376,6 +378,25 @@ Parser.prototype = {
|
||||
return node;
|
||||
},
|
||||
|
||||
/**
|
||||
* block code
|
||||
*/
|
||||
|
||||
parseBlockCode: function(){
|
||||
var tok = this.expect('blockCode');
|
||||
var node;
|
||||
var body = this.peek();
|
||||
var text;
|
||||
if (body.type === 'pipeless-text') {
|
||||
this.advance();
|
||||
text = body.val.join('\n');
|
||||
} else {
|
||||
text = '';
|
||||
}
|
||||
node = new nodes.Code(text, false, false);
|
||||
return node;
|
||||
},
|
||||
|
||||
/**
|
||||
* comment
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user