class Bake::Context

def base_for(path)

Parameters:
  • scope (Array) -- the path for the scope.
def base_for(path)
	base = nil
	
	@loaders.each do |loader|
		if scope = loader.scope_for(path)
			base ||= Base.derive(path)
			
			base.prepend(scope)
		end
	end
	
	return base
end