Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sass_import

Sass Import


Description

Create an import statement to be used within your Sass file. See https://sass-lang.com/documentation/file.SASS_REFERENCE.html#import for more details.

Usage

sass_import(input, quote = TRUE)

sass_file(input)

Arguments

input

Character string to be placed in an import statement.

quote

Logical that determines if a double quote is added to the import value. Defaults to TRUE.

Details

sass_file adds extra checks to make sure an appropriate file path exists given the input value.

Value

Fully defined Sass import string.

Examples

sass_import("foo")
sass_import("$foo", FALSE)

tmp_scss_file <- tempfile(fileext = ".scss")
writeLines("$color: red; body{ color: $color; }", tmp_scss_file)
sass_file(tmp_scss_file)
sass(sass_file(tmp_scss_file))

sass

Syntactically Awesome Style Sheets ('Sass')

v0.3.1
MIT + file LICENSE
Authors
Joe Cheng [aut], Timothy Mastny [aut], Richard Iannone [aut] (<https://orcid.org/0000-0003-3925-190X>), Barret Schloerke [aut] (<https://orcid.org/0000-0001-9986-114X>), Carson Sievert [aut, cre] (<https://orcid.org/0000-0002-4958-2844>), RStudio [cph, fnd], Sass Open Source Foundation [ctb, cph] (LibSass library), Greter Marcel [ctb, cph] (LibSass library), Mifsud Michael [ctb, cph] (LibSass library), Hampton Catlin [ctb, cph] (LibSass library), Natalie Weizenbaum [ctb, cph] (LibSass library), Chris Eppstein [ctb, cph] (LibSass library), Adams Joseph [ctb, cph] (json.cpp), Trifunovic Nemanja [ctb, cph] (utf8.h)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.