Next: , Up: API  


1.1 (hygguile abstraction)

1.1.1 Procedures

Procedure: get-short-commit-sha

Undocumented procedure.

Procedure: mk-class xs

Return a sorted, space-separated string of unique class names from xs.

Takes a list of symbols xs, removes any duplicates, converts them to strings, sorts them alphabetically, and returns them as a single, space-separated string. This is useful for creating a canonical CSS class attribute value.

If xs is the empty list, an empty string is returned.

xs

A list of symbols.

(mk-class '(input button primary input))
⇒ "button input primary"

(mk-class '(baz foo bar))
⇒ "bar baz foo"

(mk-class '())
⇒ ""
Procedure: pretty-quote str

Undocumented procedure.

Procedure: render-if-nempty render-func item

Undocumented procedure.

Procedure: render-if-nestring expr x

Undocumented procedure.

Procedure: syscall cmd

Undocumented procedure.