mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-20 10:45:01 +00:00
init add. warning: it can't run!
This commit is contained in:
35
node_modules/jade/lib/nodes/code.js
generated
vendored
Executable file
35
node_modules/jade/lib/nodes/code.js
generated
vendored
Executable file
@@ -0,0 +1,35 @@
|
||||
|
||||
/*!
|
||||
* Jade - nodes - Code
|
||||
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
|
||||
* MIT Licensed
|
||||
*/
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
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.__proto__ = Node.prototype;
|
Reference in New Issue
Block a user