plugins/settag/settag.js
function(Template,expression){
	this.needs = {};
	var reAddToList = new RegExp('^' + Template.language.tag('addtolist') + '\\s+([^=]+)\\s+to\\s+(.+)');
	if(!reAddToList.test(expression)){
		this.skip = true;
		Noodles.Utilities.warning(Template,'Addtolist tag has bad syntax');
		return;
	}
	expression = reAddToList.exec(expression)
	this.value = Noodles.Utilities.parseType(Template,expression[1]);
	this.list = Noodles.Utilities.parseType(Template,expression[2]);
	if(this.list.type !== "object"){
		this.skip = true;
		Noodles.Utilities.warning(Template,'Addtolist tag has bad syntax, the list must be an identifier or object');
		return;
	}
	this.needs = Noodles.Utilities.mergeObjectWith(this.needs,this.value.needs);
	this.needs = Noodles.Utilities.mergeObjectWith(this.needs, this.list.needs);
	this.modifies = {};
	this.modifies[this.list.order[0]] = true;
}
function(Template,expression){
	this.needs = {};
	var reAddToList = new RegExp('^' + Template.language.tag('addtolist') + '\\s+([^=]+)\\s+to\\s+(.+)');
	if(!reAddToList.test(expression)){
		this.skip = true;
		Noodles.Utilities.warning(Template,'Addtolist tag has bad syntax');
		return;
	}
	expression = reAddToList.exec(expression)
	this.value = Noodles.Utilities.parseType(Template,expression[1]);
	this.list = Noodles.Utilities.parseType(Template,expression[2]);
	if(this.list.type !== "object"){
		this.skip = true;
		Noodles.Utilities.warning(Template,'Addtolist tag has bad syntax, the list must be an identifier or object');
		return;
	}
	this.needs = Noodles.Utilities.mergeObjectWith(this.needs,this.value.needs);
	this.needs = Noodles.Utilities.mergeObjectWith(this.needs, this.list.needs);
	this.modifies = {};
	this.modifies[this.list.order[0]] = true;
}
/*--module--
name: AddToList
description: AddToList object set method
@param {Noodles.Template}
@param {expression}