Skip to content

privefl/libsassr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libsassr

An R package to wrap the LibSass C++ library.

This is in early stage development. Seems like RStudio implemented it few days after me; use their version.

Installation

  • Clone this repo
  • In a terminal: git submodule update --init --recursive
  • In a terminal: make -C inst/include/libsass
  • In R: devtools::document()
  • In R: devtools::install()

Example

library(libsassr)

string <- "a { b { color: blue; } }"
sass_compile_string(string)

write(string, tmp <- tempfile())
sass_compile_file(tmp)

sass_compile_file(tmp, "test.css")

unlink("test.css")

About

An R package to wrap the LibSass C++ library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published