docs: function _renderMain(text, _fields, fileInfo, context) 
  { 
  	if (fileInfo.isLayout || fileInfo.isPartial)
  		// don't tag building blocks, they're done when they're included/snippeted,
  		// as their content may change depending upon the file being included into.
  		return text;
  
  	var options = _.extend({}, 
  			default_options, 
  			this.plugin_options, {
  				partials: _makePartials(context),
  				defaults: _makeSectionBlocks(context),
  				//log: l.If(fileInfo) && l._debuglevel()>0
  			});
  
  	// might be just a sitemap or similar
  	var fields = _.extend({}, context.config.default_fields, _fields);
  	//l.pushTime();
  	// there are two paths:
  	var templated = !!fields.template_content;
  	if (templated) {
  		l.logdIf(fileInfo,0, "Detagging '"+fileInfo.relPath+"' using template field (pass1)"+(options.log?" +logging":""));
  
  		// First, make sure we render any tags in the 'content' 
  		_fields.content = usematch.render(_fields.content, fields, options)
  		fields.content = _fields.content;
  		//l.logdIf(fileInfo, 2, "Finished rendering content for '"+fileInfo.relPath+"': " + _fields.content);
  
  		//l.logdIf(fileInfo, 3, "The template for '"+fileInfo.relPath+"': \n" + _fields.template_content);
  		//options.log = l.If(fileInfo)
  		l.logdIf(fileInfo,0, "Detagging '"+fileInfo.relPath+"' using template field (pass2)"+(options.log?" +logging":""));
  		_fields.template_content = usematch.render(_fields.template_content, fields, options);
  		text = _fields.template_content;
  
  
  	}
  	else {
  		l.logdIf(fileInfo, 0, "Detagging '"+fileInfo.relPath+"' using content field"+(options.log?" +logging":""));
  		text = _fields.content = usematch.render(_fields.content, fields, options);
  	}
  	if (l._debuglevel()>=1) l.logdIf(fileInfo, 2, "Final "+(templated?"(templated) ":"") +"text: \n" + l._colors.FgGreen + text.substr(0,1000) + l._colors.Reset);
  	//l.popTime('usematch for ' + fileInfo.relPath)
  
  	return _fields.content; // make sure we return the CONTENT, not necessarily the templated text we've calculated here. 
  }