https://github.com/wch/sassy
A new Sass package for R
https://github.com/wch/sassy
Last synced: 4 months ago
JSON representation
A new Sass package for R
- Host: GitHub
- URL: https://github.com/wch/sassy
- Owner: wch
- Created: 2024-04-12T20:17:23.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-06-01T00:49:51.000Z (9 months ago)
- Last Synced: 2024-10-11T18:21:30.972Z (4 months ago)
- Language: JavaScript
- Size: 3.22 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - wch/sassy - A new Sass package for R (JavaScript)
README
Sassy
=====This package is a proof of concept for using the Dart Sass library compiled to JavaScript, compiled to C using QuickJS, and calling the C code from R.
To install:
```R
remotes::install_github(c("andrjohns/QuickJSR", "wch/sassy"))
```To use:
```R
library(sassy)# Create a SCSS file
cat(".box {\n height: 10px + 20px;\n}", file = "test.scss")# Compile it to CSS
sass("test.scss")
#> .box {
#> height: 30px;
#> }
```## Notes
The file src/sass.c was generated from the JS code in this repository using QuickJS. See the instructions in the repository to see how to do this. https://github.com/wch/sass-quickjs