Sha256: c7edf6a36d9a41842059528b938dbd61ae6de6a0e978f35a8442d0739e9ed0ef
Contents?: true
Size: 522 Bytes
Versions: 38
Compression:
Stored size: 522 Bytes
Contents
/*! * Jade - nodes - Text * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca> * MIT Licensed */ /** * Module dependencies. */ var Node = require('./node'); /** * Initialize a `Text` node with optional `line`. * * @param {String} line * @api public */ var Text = module.exports = function Text(line) { this.val = ''; if ('string' == typeof line) this.val = line; }; /** * Inherit from `Node`. */ Text.prototype.__proto__ = Node.prototype; /** * Flag as text. */ Text.prototype.isText = true;
Version data entries
38 entries across 38 versions & 2 rubygems