Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the softdrink Reference Manual, version 0.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 05:53:50 2022 GMT+0.
Next: Systems, Previous: The softdrink Reference Manual, Up: The softdrink Reference Manual [Contents][Index]
Softdrink is a small toolkit to extract CSS from HTML or inline it. Softdrink relies on lQuery and LASS.
Extracting style information happens with slurp
.
(softdrink:slurp "<div><foo/><foo id=\"bla\" style=\"bar:baz;bluh: bbab\" /></div>")
Injecting CSS back in happens with mix
. You can then prettify the output with pour
.
(softdrink:pour (softdrink:mix "<foo><p/></foo>" '(p :text-decoration underline)))
Softdrink includes support for the LASS item-types :BLOCK
and :PROPERTY
. Any other type needs to be added with DEFINE-INLINER
or DEFINE-MANIPULATOR
.
Next: Files, Previous: Introduction, Up: The softdrink Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
Tools to inline or extract CSS into/from HTML.
Nicolas Hafner <shinmera@tymoon.eu>
Nicolas Hafner <shinmera@tymoon.eu>
(GIT https://github.com/Shinmera/softdrink.git)
zlib
0.1.0
Next: Packages, Previous: Systems, Up: The softdrink Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: softdrink/package.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
softdrink (system).
Next: softdrink/toolkit.lisp, Previous: softdrink/softdrink.asd, Up: Lisp [Contents][Index]
softdrink (system).
Next: softdrink/inline.lisp, Previous: softdrink/package.lisp, Up: Lisp [Contents][Index]
package.lisp (file).
softdrink (system).
Next: softdrink/extract.lisp, Previous: softdrink/toolkit.lisp, Up: Lisp [Contents][Index]
toolkit.lisp (file).
softdrink (system).
Previous: softdrink/inline.lisp, Up: Lisp [Contents][Index]
inline.lisp (file).
softdrink (system).
Next: Definitions, Previous: Files, Up: The softdrink Reference Manual [Contents][Index]
Packages are listed by definition order.
org.tymoonnext.softdrink
Next: Indexes, Previous: Packages, Up: The softdrink Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Public Interface, Up: Public Interface [Contents][Index]
Defines a new inliner.
NAME — The inliner’s name, automatically converted to a keyword.
ROOT — Symbol bound to the root node to process.
ARGS — Lambda-list for the manipulator arguments.
Defines a new manipulator.
NAME — The manipulator’s name, automatically converted to a keyword.
ELEMENT — Symbol bound to the element to process.
ARGS — Lambda-list for the manipulator arguments.
Previous: Macros, Up: Public Interface [Contents][Index]
Extract style elements from ROOT into a LASS sheet.
If MODIFY is non-NIL the STYLE attributes are removed.
Returns two values: the LASS sheet and the ROOT.
Inlines the given LASS block into the ROOT node. Returns the ROOT.
Inlines the given LASS-SHEET into the ROOT node. Returns the ROOT.
Returns a function to use as an inliner. The TYPE is automatically converted to a keyword. If no fitting function can be found, a noop-function is returned.
Set a new inliner function. The TYPE is automatically converted to a keyword.
Manipulate the NODE with the given ITEM. Returns the NODE.
Returns a function to use as a manipulator. The TYPE is automatically converted to a keyword. If no fitting function can be found, a noop-function is returned.
Set a new manipulator function. The TYPE is automatically converted to a keyword.
Mixes the LASS-SHEET definition into the SOURCE.
Returns a NODE.
Source can either be a NODE or something PARSEable.
See PLUMP:PARSE, LASS:COMPILE-SHEET
Serializes NODE into STREAM.
STREAM can either be an object of type STREAM, NIL (to string), or T (to *standard-output*).
See PLUMP:SERIALIZE
Slurp all style information from SOURCE into STREAM.
SOURCE — can be either a NODE or something PLUMP:PARSEable. STREAM — Where to output the CSS to. See LASS:WRITE-SHEET PRETTY — Whether to prettify CSS or not. See LASS:WRITE-SHEET MODIFY — Whether to modify the root or not. See EXTRACT-SHEET
Returns two values: The ourput of WRITE-SHEET and the ROOT.
Previous: Public Interface, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Internals, Up: Internals [Contents][Index]
Previous: Special variables, Up: Internals [Contents][Index]
Returns a string that should (hopefully) uniquely identify the NODE.
Previous: Definitions, Up: The softdrink Reference Manual [Contents][Index]
Jump to: | (
D E F I M P R S T U |
---|
Jump to: | (
D E F I M P R S T U |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Jump to: | E F I P S T |
---|
Jump to: | E F I P S T |
---|