# NOT RUN {
# raw Sass input
sass("foo { margin: 122px * .3; }")
# list of inputs, including named variables
sass(list(
list(width = "122px"),
"foo { margin: $width * .3; }"
))
# import a file
tmp_file <- tempfile()
writeLines("foo { margin: $width * .3; }", tmp_file)
sass(list(
list(width = "122px"),
sass_file(tmp_file)
))
# }
Run the code above in your browser using DataCamp Workspace