UNPKG

617 BJavaScriptView Raw
1
2/*!
3 * Jade - nodes - Filter
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 , Block = require('./block');
14
15/**
16 * Initialize a `Filter` node with the given
17 * filter `name` and `block`.
18 *
19 * @param {String} name
20 * @param {Block|Node} block
21 * @api public
22 */
23
24var Filter = module.exports = function Filter(name, block, attrs) {
25 this.name = name;
26 this.block = block;
27 this.attrs = attrs;
28 this.isASTFilter = block instanceof Block;
29};
30
31/**
32 * Inherit from `Node`.
33 */
34
35Filter.prototype.__proto__ = Node.prototype;
\No newline at end of file