public function getMainTemplateFile()
    {
    	$main = $this->getPath() . '/main.ss';

    	if(file_exists($main)) {
    		return $main;
    	}

    	$main = (string) $this->getConfiguration()->main_template;
    	if($main) {
    		return SSViewer::getTemplateFileByType($main, 'main');
    	}

    	return false;
    }