Skip to content

Commit

Permalink
expose .textOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 5, 2011
1 parent 5c78fa0 commit cff6189
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/parser.js
Expand Up @@ -12,12 +12,6 @@
var Lexer = require('./lexer') var Lexer = require('./lexer')
, nodes = require('./nodes'); , nodes = require('./nodes');


/**
* Tags that may not contain tags.
*/

var textOnly = ['script', 'textarea', 'style'];

/** /**
* Initialize `Parser` with the given input `str` and `filename`. * Initialize `Parser` with the given input `str` and `filename`.
* *
Expand All @@ -26,12 +20,18 @@ var textOnly = ['script', 'textarea', 'style'];
* @api public * @api public
*/ */


var Parser = module.exports = function Parser(str, filename){ var Parser = exports = module.exports = function Parser(str, filename){
this.input = str; this.input = str;
this.lexer = new Lexer(str); this.lexer = new Lexer(str);
this.filename = filename; this.filename = filename;
}; };


/**
* Tags that may not contain tags.
*/

var textOnly = exports.textOnly = ['script', 'textarea', 'style'];

/** /**
* Parser prototype. * Parser prototype.
*/ */
Expand Down

0 comments on commit cff6189

Please sign in to comment.