mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
30 lines
460 B
JavaScript
30 lines
460 B
JavaScript
![]() |
|
||
|
/*!
|
||
|
* Jade - nodes - Literal
|
||
|
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
|
||
|
* MIT Licensed
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Module dependencies.
|
||
|
*/
|
||
|
|
||
|
var Node = require('./node');
|
||
|
|
||
|
/**
|
||
|
* Initialize a `Literal` node with the given `str.
|
||
|
*
|
||
|
* @param {String} str
|
||
|
* @api public
|
||
|
*/
|
||
|
|
||
|
var Literal = module.exports = function Literal(str) {
|
||
|
this.str = str;
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* Inherit from `Node`.
|
||
|
*/
|
||
|
|
||
|
Literal.prototype.__proto__ = Node.prototype;
|