This is the cl-minify-css Reference Manual, version 1.0.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:09:35 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-minify-css
To minify css with common lisp.
noloop <noloop@zoho.com>
noloop <noloop@zoho.com>
(GIT git@github.com:noloop/cl-minify-css.git)
GPLv3
1.0.0
src
(module).
Modules are listed depth-first from the system components tree.
cl-minify-css/src
cl-minify-css
(system).
package.lisp
(file).
cl-minify-css.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-minify-css/src/cl-minify-css.lisp
package.lisp
(file).
src
(module).
class-name-without-spaces
(function).
end-bracket-index
(function).
make-string-from-chars
(function).
minify-css
(function).
minify-css-class
(function).
properties-without-spaces
(function).
remove-css-comments-recursive
(function).
remove-spaces-newlines-tabs
(function).
split-css-in-classes
(function).
trim
(function).
Packages are listed by definition order.
noloop.cl-minify-css
cl-minify-css
common-lisp
.
class-name-without-spaces
(function).
end-bracket-index
(function).
make-string-from-chars
(function).
minify-css
(function).
minify-css-class
(function).
properties-without-spaces
(function).
remove-css-comments-recursive
(function).
remove-spaces-newlines-tabs
(function).
split-css-in-classes
(function).
trim
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
It returns a string without spaces, newlines and tabs for a given css class name. Example:
(class-name-without-spaces "div p,
div p + p, h1,
#myid ") => "div p,div p+p,h1,#myid"
It returns the closing bracket index (here called end-bracket) of a given onpening bracket index (here called start-bracket) of one string (here called css).
It returns a string for given char list. Example: (make-string-from-chars ’(#s #o #m #e)) => "some"
It minify a css code removing spaces, newlines, tabs, comments. If want keep the license comment use :keep-license-p t.
It returns the minified class string for a given css class string. If :keep-license-p t the comments that have "license" (non-case-sensitive) are kept. Example:
(minify-css ".myclass { margin: .67em 0; /* some comment */
padding: 5px; } ") => ".myclass{margin:.67em 0;padding:5px;}"
It returns a string without spaces, newlines and tabs in the properties for given css. Example:
(properties-without-spaces "margin: .67em 0;
padding: 5px; ") => "margin:.67em 0;padding:5px;"
It removes all comments of the css code, if :keep-license-p t the comments that have "license" (non-case-sensitive) are kept. Use :start-search <number> to remove the comments only after a start position string.
It returns a string without all spaces, newlines and tabs for given string. Example: (remove-spaces-newlines-tabs " hi, I’m here! ") => "hi,I’mhere!"
It returns a list with splited classes strings of a given css string. If the css has media-queries instead of a string is returned a list where the first is the media query, and the rest is the string classes. Example:
(split-css-in-classes "body{color:red;}@media (min-width:30em){body{color:green;}div{font-size:1em;}}")
=> ("body{color:red;}"
("@media (min-width:30em)"
("body{color:green;}"
"div{font-size:1em;}")))
It returns a string without all spaces, newlines and tabs in its extremes, this functions doesn’t make nothing about the middle of the string. Example: (string-trim " hi, I’m here! ") => "hi, I’m here!"
Jump to: | C E F M P R S T |
---|
Jump to: | C E F M P R S T |
---|
Jump to: | C F M N P S |
---|
Jump to: | C F M N P S |
---|