convert_file {rless} | R Documentation |
Converts content of file to CSS
Description
Passes content of file_name into V8 console and converts it using LESS engine to CSS. The converted CSS is saved into output_folder under original name. Only the extension is switched to css.
Usage
convert_file(base_path, file_name, output_folder = tempdir())
Arguments
base_path |
Base path to file to be converted |
file_name |
Path relative to |
output_folder |
Output path where converted file should be placed.
File is placed to |
Value
Full path to created file with converted CSS file
Examples
path_to_less_files <- system.file("extdata", package="rless")
convert_file(path_to_less_files, "example.less")
convert_file(path_to_less_files, "example.less", tempdir())
[Package rless version 0.1.1 Index]