You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
343 B
15 lines
343 B
'use strict';
|
|
|
|
var unherit = require('unherit');
|
|
var xtend = require('xtend');
|
|
var Parser = require('./lib/parser.js');
|
|
|
|
module.exports = parse;
|
|
parse.Parser = Parser;
|
|
|
|
function parse(options) {
|
|
var Local = unherit(Parser);
|
|
Local.prototype.options = xtend(Local.prototype.options, this.data('settings'), options);
|
|
this.Parser = Local;
|
|
}
|