% 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/at-rules/import} for more details. } \details{ \code{sass_file()} adds extra checks to make sure an appropriate file path exists given the input value. Note that the LibSass compiler expects .sass files to use the Sass Indented Syntax. } \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)) } }