Skip to content
Snippets Groups Projects
Commit b3f782ef authored by jurgenhaas's avatar jurgenhaas
Browse files

#7 Support customizable SASS path

parent cd1120bf
No related branches found
No related tags found
No related merge requests found
......@@ -215,6 +215,12 @@ class Handler
return '';
}
$string = str_replace('THEMENAME', '{{ project_name }}', $string);
$baseTheme = $this->getOption('base_theme');
if (isset($baseTheme['sasspath'])) {
if (strpos($baseTheme['sasspath'], $string) === 0) {
$string = 'sass' . substr($string, strlen($baseTheme['sasspath']));
}
}
$this->twig_loader->setTemplate('fixed', $string);
return str_replace('"', '"', $this->twig->render('fixed', $this->getOptions()));
......@@ -268,8 +274,8 @@ class Handler
/**
* @param FileSystem $fs
* @param Finder $finder
* @param $path
* @param $destination
* @param string $source
* @param string $destination
*/
protected function copyFiles($fs, $finder, $source, $destination) {
// Make sure all directories do exist
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment