Initial support for LESS and SCSS stylesheets

This commit is contained in:
Kijin Sung 2016-05-03 21:23:38 +09:00
parent 0b05de6f80
commit 25965b5d72
3 changed files with 127 additions and 52 deletions

View file

@ -16,7 +16,18 @@ class FileHandler
*/
public static function getRealPath($source)
{
return (strncmp($source, './', 2) === 0) ? (\RX_BASEDIR . substr($source, 2)) : $source;
if (strncmp($source, './', 2) === 0)
{
return \RX_BASEDIR . substr($source, 2);
}
elseif (strncmp($source, '/', 1) === 0)
{
return $source;
}
else
{
return \RX_BASEDIR . $source;
}
}
/**