Debian Codegraph @

man/sass_import.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/as_sass.R
3 \name{sass_import}
4 \alias{sass_import}
5 \alias{sass_file}
6 \title{Sass Import}
7 \usage{
8 sass_import(input, quote = TRUE)
9
10 sass_file(input)
11 }
12 \arguments{
13 \item{input}{Character string to be placed in an import statement.}
14
15 \item{quote}{Logical that determines if a double quote is added to the import
16 value. Defaults to \code{TRUE}.}
17 }
18 \value{
19 Fully defined Sass import string.
20 }
21 \description{
22 Create an import statement to be used within your Sass file. See
23 \url{https://sass-lang.com/documentation/at-rules/import} for
24 more details.
25 }
26 \details{
27 \code{sass_file()} adds extra checks to make sure an appropriate file path
28 exists given the input value.
29
30 Note that the LibSass compiler expects .sass files to use the Sass Indented
31 Syntax.
32 }
33 \examples{
34 sass_import("foo")
35 sass_import("$foo", FALSE)
36 \donttest{
37 tmp_scss_file <- tempfile(fileext = ".scss")
38 writeLines("$color: red; body{ color: $color; }", tmp_scss_file)
39 sass_file(tmp_scss_file)
40 sass(sass_file(tmp_scss_file))
41 }
42 }