racket-sass/sass/sass.scrbl

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-08-25 11:11:10 +00:00
#lang scribble/manual
@(require (for-label racket/base
sass))
@title{@exec{SASS}: Bindings to libsass}
@author[(author+email "Bogdan Popa" "bogdan@defn.io")]
@section[#:tag "intro"]{Introduction}
@(define libsass-uri "https://github.com/sass/libsass")
@exec{sass} exposes bindings to @link[libsass-uri]{libsass} via the FFI.
@section[#:tag "reference"]{Reference}
@defmodule[sass]
@deftogether[
(@defproc[(compile/file [path path-string?]) string?]
@defproc[(compile/bytes [data bytes?]) string?]
@defproc[(compile/string [data string?]) string?])]{
Compile a SCSS file, bytes or a string into a string of CSS. Raises
@racket[exn:fail:sass?] on error.
Files referenced in @exec{@"@"import} statements are searched using
the value of @racket[current-include-paths].
2019-08-25 11:11:10 +00:00
}
@deftogether[
(@defproc[(exn:fail:sass? [v any/c]) boolean?]
@defproc[(exn:fail:sass-code [e exn:fail:sass?]) exact-integer?])]{
}
@defparam[current-include-paths paths (listof path-string?) #:value null]{
A parameter that controls where SCSS imports should be looked up.
}