mirror of
https://github.com/mgerb/mywebsite
synced 2026-03-06 00:05:24 +00:00
Added all files
This commit is contained in:
26
node_modules/jade/lib/nodes/code.js
generated
vendored
Normal file
26
node_modules/jade/lib/nodes/code.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
var Node = require('./node');
|
||||
|
||||
/**
|
||||
* Initialize a `Code` node with the given code `val`.
|
||||
* Code may also be optionally buffered and escaped.
|
||||
*
|
||||
* @param {String} val
|
||||
* @param {Boolean} buffer
|
||||
* @param {Boolean} escape
|
||||
* @api public
|
||||
*/
|
||||
|
||||
var Code = module.exports = function Code(val, buffer, escape) {
|
||||
this.val = val;
|
||||
this.buffer = buffer;
|
||||
this.escape = escape;
|
||||
if (val.match(/^ *else/)) this.debug = false;
|
||||
};
|
||||
|
||||
// Inherit from `Node`.
|
||||
Code.prototype = Object.create(Node.prototype);
|
||||
Code.prototype.constructor = Code;
|
||||
|
||||
Code.prototype.type = 'Code'; // prevent the minifiers removing this
|
||||
Reference in New Issue
Block a user