lib/wt2html/parser.js
function(options) {
	if (!options) { options = {}; }

	Object.keys(options).forEach(function(k) {
		console.assert(supportedOptions.has(k), 'Invalid cacheKey option: ' + k);
	});

	// default: not an include context
	if (options.isInclude === undefined) {
		options.isInclude = false;
	}

	// default: wrap templates
	if (options.expandTemplates === undefined) {
		options.expandTemplates = true;
	}

	return options;
}
function(options) {
	if (!options) { options = {}; }

	Object.keys(options).forEach(function(k) {
		console.assert(supportedOptions.has(k), 'Invalid cacheKey option: ' + k);
	});

	// default: not an include context
	if (options.isInclude === undefined) {
		options.isInclude = false;
	}

	// default: wrap templates
	if (options.expandTemplates === undefined) {
		options.expandTemplates = true;
	}

	return options;
}
function ( options ) { if ( ! options ) { options = { } ; } Object . keys ( options ) . forEach ( function ( k ) { console . assert ( supportedOptions . has ( k ) , 'Invalid cacheKey option: ' + k ) ; } ) ; // default: not an include context if ( options . isInclude === undefined ) { options . isInclude = false ; } // default: wrap templates if ( options . expandTemplates === undefined ) { options . expandTemplates = true ; } return options ; }
Default options processing
Default options processing