Sha256: b9f67764f334e52348b3151348e1c5a3a10e363957199c878d6bca4646cb65cd

Contents?: true

Size: 640 Bytes

Versions: 43

Compression:

Stored size: 640 Bytes

Contents

/*!
 * 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;

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
stylus-source-0.49.3 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
snowball-0.1.22 node_modules/jade/lib/nodes/code.js
stylus-source-0.42.2 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.42.1 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.42.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.41.3 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.41.2 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.41.1 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.41.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.40.3 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.40.2 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.40.1 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.40.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.39.4 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.39.3 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.39.2 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.39.1 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.39.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.38.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js
stylus-source-0.37.0 vendor/node_modules/mocha/node_modules/jade/lib/nodes/code.js