code: function(target_object, path, value) {
  
  		var path_segments = path.split('.'),
  			segment,
  			resource_name = path_segments.pop(),
  			i = 0,
  			count = path_segments.length;
  
  		if (Lava.schema.DEBUG && /[a-z]/.test(resource_name)) Lava.t("Terminal resource names must be uppercase");
  
  		for (; i < count; i++) {
  
  			segment = path_segments[i];
  			if (Lava.schema.DEBUG && /[A-Z]/.test(segment)) Lava.t("Resource component names must be lowercase");
  
  			if (!(segment in target_object)) {
  
  				target_object[segment] = {
  					type: 'component',
  					value: {}
  				};
  
  			} else {
  
  				if (Lava.schema.DEBUG && target_object[segment].type != 'component') Lava.t("Malformed resource definition, path is not component: " + path);
  
  			}
  
  			target_object = target_object[segment].value;
  
  		}
  
  		if (resource_name in target_object) Lava.t("Resource is already defined: " + path);
  		target_object[resource_name] = value;
  
  	}
docs: Helper function which puts the value inside the resources object under given path string.
  Used while parsing templates
  
  @param {Object} target_object The resources object which is being parsed
  @param {string} path Path inside the resources object
  @param {*} value