SASS:   Bindings to libsass
1 Introduction
2 Reference
compile/  file
compile/  bytes
compile/  string
exn:  fail:  sass?
exn:  fail:  sass-code
current-include-paths
7.4

SASS: Bindings to libsass

Bogdan Popa <bogdan@defn.io>

1 Introduction

sass exposes bindings to libsass via the FFI.

2 Reference

 (require sass) package: sass

procedure

(compile/file path)  string?

  path : path-string?

procedure

(compile/bytes data)  string?

  data : bytes?

procedure

(compile/string data)  string?

  data : string?
Compile a SCSS file, bytes or a string into a string of CSS. Raises exn:fail:sass? on error.

Files referenced in @import statements are searched using the value of current-include-paths.

procedure

(exn:fail:sass? v)  boolean?

  v : any/c

procedure

(exn:fail:sass-code e)  exact-integer?

  e : exn:fail:sass?

parameter

(current-include-paths)  (listof path-string?)

(current-include-paths paths)  void?
  paths : (listof path-string?)
 = null
A parameter that controls where SCSS imports should be looked up.