UNPKG

557 BJavaScriptView Raw
1
2/*!
3 * Jade - nodes - Comment
4 * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
5 * MIT Licensed
6 */
7
8/**
9 * Module dependencies.
10 */
11
12var Node = require('./node');
13
14/**
15 * Initialize a `Comment` with the given `val`, optionally `buffer`,
16 * otherwise the comment may render in the output.
17 *
18 * @param {String} val
19 * @param {Boolean} buffer
20 * @api public
21 */
22
23var Comment = module.exports = function Comment(val, buffer) {
24 this.val = val;
25 this.buffer = buffer;
26};
27
28/**
29 * Inherit from `Node`.
30 */
31
32Comment.prototype.__proto__ = Node.prototype;
\No newline at end of file