File: sass_import.Rd

package info (click to toggle)
r-cran-sass 0.3.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,012 kB
  • sloc: cpp: 29,639; ansic: 962; sh: 668; makefile: 321; perl: 56
file content (39 lines) | stat: -rw-r--r-- 990 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/as_sass.R
\name{sass_import}
\alias{sass_import}
\alias{sass_file}
\title{Sass Import}
\usage{
sass_import(input, quote = TRUE)

sass_file(input)
}
\arguments{
\item{input}{Character string to be placed in an import statement.}

\item{quote}{Logical that determines if a double quote is added to the import
value. Defaults to \code{TRUE}.}
}
\value{
Fully defined Sass import string.
}
\description{
Create an import statement to be used within your Sass file. See
\url{https://sass-lang.com/documentation/file.SASS_REFERENCE.html#import} for
more details.
}
\details{
\code{sass_file} adds extra checks to make sure an appropriate file path
exists given the input value.
}
\examples{
sass_import("foo")
sass_import("$foo", FALSE)
\donttest{
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))
}
}