Next: (hygguile components button), Up: API
Retrieve the short Git commit SHA or execute a custom version control command.
The shell command string to execute, defaulting to the command that fetches the 7-character short commit hash.
(get-short-commit-sha)
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.
A list of symbols.
(mk-class '(p-2 bg-stone-900/75))
Convert an association list of properties and values into a CSS inline style string.
An association list or list of pairs where each element’s car is
the CSS property name and its cdr is the value.
(mk-style '((background-color . "red") (color . "blue")))
Transform explicit S-expression (quote symbol) fragments within a
string into shorthand syntax.
The target input string containing raw code snippets or text representations.
(pretty-quote "This is a (quote example) line.")
Apply render-func to item if item is neither empty nor false.
Returns an empty list if item evaluates to null or false.
A single-argument procedure to evaluate the layout with item.
The data element or fragment list to inspect.
(render-if-nempty (lambda (i) `(b ,i)) "Bold Text")
Evaluate and return the result of expr with x if x is a non-empty string.
If x is false or an empty string, returns an empty list.
A single-argument procedure to apply to x.
The string value or condition to check.
(render-if-nestring (lambda (val) `((p ,val))) "Hello")
Execute a shell command synchronous process and capture its complete standard output.
A string designating the system command execution pipeline.
(syscall "uname -a")
Next: (hygguile components button), Up: API