convert_file: Converts content of file to CSS

Description Usage Arguments Value Examples

View source: R/convert_file.R

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

1
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

1
2
3
4
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())

rless documentation built on Aug. 1, 2019, 1:04 a.m.