rless (version 0.1.0)

convert_file: 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 base_path leading to file to be converted

output_folder

Output path where converted file should be placed. File is placed to tempdir by default

Value

Full path to created file with converted CSS file

Examples

Run this code
# NOT RUN {
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())

# }

Run the code above in your browser using DataLab