search_vars: Search variables in a .scss file

View source: R/search-vars.R

search_varsR Documentation

Search variables in a .scss file

Description

Search variables in a .scss file

Usage

search_vars(file)

Arguments

file

File path in which to search for variables.

Value

A data.frame with 2 columns: "variable" and "value".

Examples

# Create a scss file with some variables
tmp_scss_file <- tempfile(fileext = ".scss")
writeLines("//Some variables\n $color: red;\n $body-bg: #FFF;", tmp_scss_file)

# Search for variables
search_vars(tmp_scss_file)


# Clean up
unlink(tmp_scss_file)

fresh documentation built on June 26, 2024, 5:06 p.m.