lessphp
lessphp copied to clipboard
@import full path in windows os broken
hello
I'm trying to use the full path in the import statements
this is the .less file:
@import "@{stylesheet_path}colors.less"; @import "@{template_path}liquida/etc.less";
i set the variables via php and i tried with
$test = strtr(realpath(dirname($output)), '', '/');
$test = realpath(dirname($output));
$test = dirname($output);
$less->setVariables(array( 'stylesheet_path' => "'". $test ."/'", 'template_path' => "'". $test ."/'", 'stylesheet_url' => "'". $test ."/'", 'template_url' => "'". $test ."/'", ));
but less files are not imported & the output is allways the string of the folder
@import "C:/wamp/www/wordpress/wp-content/uploads/liquida/css/colors.less"; @import "C:/wamp/www/wordpress/wp-content/uploads/liquida/css/liquida/functions.less";
i think we have an issue here, or im doing something wrong ?
thanks!
LESS does not support absolute paths as far as I know.
I have same problem: cannot import less file using absolute path. Can anyone confirm that LESSPHP doesn't support absolute path for import?
I have this bug too in v0.5.0