Creates or opens an SCSS file in the www/ directory. If the file
already exists, it is opened directly. Otherwise, the template is
downloaded from the
frogger-templates
repository.
Usage
write_scss(filename = "custom", path = here::here())Arguments
- filename
Character. The name of the file without the
.scssextension. Awww/prefix and.scssextension are stripped automatically if provided, so"custom2"and"www/custom2.scss"are equivalent. Only letters, numbers, hyphens, and underscores are allowed. Default is"custom".- path
Character. Path to the project directory. Default is current working directory via
here.
Details
The file is written to www/<filename>.scss. The www/
directory is created automatically if it does not exist.