This is the weblocks-util Reference Manual, version 0.1.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 07:07:03 2024 GMT+0.
weblocks-util/weblocks-util.asd
weblocks-util/src/util.lisp
weblocks-util/src/utils/misc.lisp
weblocks-util/src/utils/clos.lisp
weblocks-util/src/utils/list.lisp
weblocks-util/src/utils/i18n.lisp
weblocks-util/src/utils/templates.lisp
weblocks-util/src/utils/html-parts.lisp
The main system appears first, followed by any subsystem dependency.
weblocks-util
Utilities for weblocks
Olexiy Zamkoviy, Scott L. Burson
Slava Akhmechet
LLGPL
0.1.1
closer-mop
(system).
hunchentoot
(system).
puri
(system).
cl-json
(system).
cl-who
(system).
parenscript
(system).
cl-fad
(system).
optima
(system).
cl-cont
(system).
metatilities
(system).
cl-ppcre
(system).
anaphora
(system).
f-underscore
(system).
bordeaux-threads
(system).
salza2
(system).
html-template
(system).
trivial-timeout
(system).
trivial-backtrace
(system).
parse-number
(system).
pretty-function
(system).
ironclad
(system).
src
(module).
Modules are listed depth-first from the system components tree.
weblocks-util/src/utils
util.lisp
(file).
src
(module).
misc.lisp
(file).
clos.lisp
(file).
list.lisp
(file).
i18n.lisp
(file).
templates.lisp
(file).
html-parts.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
weblocks-util/weblocks-util.asd
weblocks-util/src/util.lisp
weblocks-util/src/utils/misc.lisp
weblocks-util/src/utils/clos.lisp
weblocks-util/src/utils/list.lisp
weblocks-util/src/utils/i18n.lisp
weblocks-util/src/utils/templates.lisp
weblocks-util/src/utils/html-parts.lisp
weblocks-util/weblocks-util.asd
weblocks-util
(system).
weblocks-util/src/util.lisp
weblocks-util/src/utils/misc.lisp
utils
(module).
append-custom-fields
(function).
asdf-system-directory
(function).
concatenate-keywords
(function).
defrender
(macro).
find-own-symbol
(function).
function-designator-p
(function).
gen-id
(function).
gzip-file
(function).
hash-keys
(function).
md5
(function).
merge-files-with-newline
(function).
public-file-relative-path
(function).
public-files-relative-paths
(function).
read-from-file
(function).
relative-path
(function).
request-parameter
(function).
request-parameters
(function).
safe-apply
(function).
safe-funcall
(function).
slurp-file
(function).
symbol-status
(function).
with-file-write
(macro).
write-to-file
(function).
*asdf-system-cache*
(special variable).
congruent-lambda-expression
(function).
merge-files
(function).
weblocks-util/src/utils/clos.lisp
utils
(module).
find-slot-dsd
(function).
find-slot-esd
(function).
object-class-name
(generic function).
slot-equal
(function).
slot-value-by-path
(function).
weblocks-util/src/utils/list.lisp
utils
(module).
alist->plist
(function).
drop-last
(function).
insert-after
(function).
insert-at
(macro).
intersperse
(function).
list->assoc
(function).
list-starts-with
(function).
ninsert
(function).
remove-keyword-parameter
(function).
remove-keyword-parameters
(function).
safe-getf
(function).
safe-subseq
(function).
stable-set-difference
(function).
weblocks-util/src/utils/i18n.lisp
utils
(module).
*translation-function*
(special variable).
translate
(function).
weblocks-util/src/utils/templates.lisp
html-parts.lisp
(file).
utils
(module).
*templates*
(special variable).
deftemplate
(function).
remove-template
(function).
render-wt-to-string
(function).
calculate-template-priority
(function).
weblocks-util/src/utils/html-parts.lisp
utils
(module).
*parts-md5-context-hash*
(special variable).
*parts-md5-hash*
(special variable).
*process-html-parts-p*
(special variable).
get-html-part
(function).
get-html-part-children
(function).
get-html-part-context
(function).
get-html-parts-root-hash
(function).
nested-html-part
(macro).
reset-html-parts-set
(function).
update-html-parts-connections
(function).
*current-html-part-children*
(special variable).
is-substring-of-p
(function).
process-html-parts-p
(function).
remove-html-part
(function).
set-html-part-children
(function).
update-current-html-part-children
(function).
Packages are listed by definition order.
weblocks-util
General Lisp utilities traditionally exported with Weblocks.
anaphora
.
closer-mop
.
common-lisp
.
f-underscore
.
hunchentoot
.
metabang.utilities
.
*parts-md5-context-hash*
(special variable).
*parts-md5-hash*
(special variable).
*process-html-parts-p*
(special variable).
*templates*
(special variable).
*translation-function*
(special variable).
alist->plist
(function).
append-custom-fields
(function).
asdf-system-directory
(function).
concatenate-keywords
(function).
defrender
(macro).
deftemplate
(function).
drop-last
(function).
find-own-symbol
(function).
find-slot-dsd
(function).
find-slot-esd
(function).
function-designator-p
(function).
gen-id
(function).
get-html-part
(function).
get-html-part-children
(function).
get-html-part-context
(function).
get-html-parts-root-hash
(function).
gzip-file
(function).
hash-keys
(function).
insert-after
(function).
insert-at
(macro).
intersperse
(function).
list->assoc
(function).
list-starts-with
(function).
md5
(function).
merge-files-with-newline
(function).
nested-html-part
(macro).
ninsert
(function).
object-class-name
(generic function).
public-file-relative-path
(function).
public-files-relative-paths
(function).
read-from-file
(function).
relative-path
(function).
remove-keyword-parameter
(function).
remove-keyword-parameters
(function).
remove-template
(function).
render-wt-to-string
(function).
request-parameter
(function).
request-parameters
(function).
reset-html-parts-set
(function).
safe-apply
(function).
safe-funcall
(function).
safe-getf
(function).
safe-subseq
(function).
slot-equal
(function).
slot-value-by-path
(function).
slurp-file
(function).
stable-set-difference
(function).
symbol-status
(function).
translate
(function).
update-html-parts-connections
(function).
with-file-write
(macro).
write-to-file
(function).
*asdf-system-cache*
(special variable).
*current-html-part-children*
(special variable).
calculate-template-priority
(function).
congruent-lambda-expression
(function).
is-substring-of-p
(function).
merge-files
(function).
process-html-parts-p
(function).
remove-html-part
(function).
set-html-part-children
(function).
update-current-html-part-children
(function).
wexport
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
A hash with key of html part md5 hash and the value of html part context
A hash with key of html part md5 hash
and the value of list with html part as car
and list of children as cdr
Hash containing all templates. Hash key is template name, hash value is a cons with template and context arguments
Destructively inserts ’newelt’ into ’list’ before ’index’.
Adds part of html (a string received as a result of &body evaluation) and context associated with it to html parts set.
Converts an alist to plist.
Appends ’custom-fields’ to the end of custom fields that are already defined in ’args’.
Computes the directory in which the .asdf file for a given ASDF system resides.
Associates function with template name. Template name is a keyword.
Context arguments used to calculate effective template.
:application-class, a symbol, this argument gives 10 points for template if its value equal to type of application used.
:context-matches argument is a callback which will be called with template context during template calculation and should return points
Returns a copy of the list without the last element.
Like ‘find-symbol’, but reject symbols not really in PACKAGE.
Returns a direct-slot-definition object of a slot with ’slot-name’ in ’class’.
Returns an effective-slot-definition object of a slot with ’slot-name’ in ’class’.
Returns true if the object is a function designator.
Generates an ID unique accross the session. The generated ID can be used to create IDs for html elements, widgets, etc.
Returns html part string by its md5
Returns html part child parts by its md5
Returns html part context by its md5
Returns md5 hash of root html part in parts tree
Redefined salsa2:gzip-file with more keywords.
Returns all keys in the hashtable.
Destructively inserts ’newelt’ into ’list’ after ’index’.
Intersperses a list with a delimeter.
If ’last’ is specified, it will be used for the last delimeter,
instead of ’delimeter’.
(intersperse ’(1 2 3 4 5) 0)
=> (1 0 2 0 3 0 4 0 5)
Nondestructively convert a list of elements to an association
list If an element of a list is a cons cell, it is left as
is. Otherwise, it is replaced with a cons cell whose ’car’ is the
element and whose ’cdr’ is a result of ’map’ applied to the
element. The ’map’ is an identity by default.
Ex:
(list->assoc ’(name age (city . location))) => ((name . name) (age . age) (city . location))
(list->assoc ’(1 (2 . 2) 3) :map #’1+) => ((1 . 2) (2 . 2) (3 . 4))
Determines if a list starts with the given elements.
Infer FILENAME’s relative path and extension from TYPE.
Example:
(public-file-relative-path :stylesheet "navigation") => "stylesheets/navigation.css"
A helper function that returns a list of paths for files provided
in ’args’. Each argument must be a cons cell where car is
either :stylesheet or :script and cdr is a name of the file.
Useful when generating a list of dependencies for widgets and/or the
application (see the ’dependencies’ generic function and
*application-dependencies*.)
Ex:
(get-public-files-paths ’(:stylesheet . "navigation")
’(:script . "effects"))
=> (#P"stylesheets/navigation.css" #P"scripts/effects.js")
Removes a keyword parameter from a parameter-list. (remove-keyword-parameter ’(1 2 3 :a 1 :b 2 :c 3) :b) => (1 2 3 :a 1 :c 3)
Removes all parameters with keys in ’keywords’ from ’parameter-list’.
Removes template associated with name and function.
Similar to render-wt but renders template to string instead of *weblocks-output-stream*
Get parameter ’name’ from the request. If the request was submitted via GET method, the parameter is obtained from the query string. If the request was submitted via POST, the parameter is obtained from the body of the request. Otherwise, an error is signalled.
Get parameters alist from the request. If the request was submitted via GET method, the parameters are obtained from the query string. If the request was submitted via POST, the parameters are obtained from the body of the request. Otherwise, an error is signalled.
Resets html parts set
Apply ’fn’ if it isn’t nil. Otherwise return nil.
Funcall ’fn’ if it isn’t nil. Otherwise return nil.
Like GETF but copes with odd argument lists. Extracts the first value whose predecessor matches NAME. Returns NIL as second value if the key wasn’t found at all.
A safe alternative to subseq that automatically adjust indices.
Whether O1 and O2 have identical slot contents, excluding
slot names in EXCLUDE.
Two slots are considered equal if they are either both unbound
or if they are both bound and pass TEST.
Signals an error when the slot names of O1 and O2 don’t match.
Retrieves a value of a slot from a hierarchy of objects. A nil on
the path is ignored.
ex:
(slot-value-by-path employee ’(address street)) => "17 Sunvalley St."
(slot-value-by-path employee ’(address)) => #<ADDRESS {XXX}>
(slot-value-by-path employee ’address) => #<ADDRESS {XXX}>
(slot-value-by-path address ’(street)) => "17 Sunvalley St."
(slot-value-by-path address ’(nil street)) => "17 Sunvalley St."
obj - a CLOS object
path - a list of slot names
Returns a list of element of ’list-1’ that do not appear in ’list-2’.
Returns a status of ’symbol’ in its package (internal, external, etc.)
Translates given string by calling *translation-function*
with string and ’scope’.
’scope’ is a set of function key arguments which can be
:accusative-form-p
:genitive-form-p
:items-count
:preceding-count
Builds html parts tree from html parts list.
Each html part child is a substring of its parent.
Html parts which are empty strings removed from html parts set.
Returns an object’s class name (i.e. "Employee"). This method is be used to present the name of an entity to the user. Override this method to change the name for particular objects.
Contains callback which should return boolean value
indicating whether html parts should be collected and processed
Calculates priority for finding effective template.
Answer a lambda expression with LAMBDA-LIST that passes all args (assuming the call is allowed by LAMBDA-LIST) to FUNCTION, answering its result.
Checks whether one string is substring of another and has less length.
Whether or not to capture html parts information
Removes html part by its md5
Sets html part child parts by its md5
Takes strings list as an argument and adds strings which are html parts (which are in html parts set) to *current-html-part-children* list
Export SYMBOLS-DESIGNATOR from PACKAGE-SPECS. Over ‘export’, PACKAGE-SPECS can be a list of packages, and the name designators therein are interpreted by prepending "WEBLOCKS-". In the latter case, the symbols will be imported first if need be.
Jump to: | A C D F G H I L M N O P R S T U W |
---|
Jump to: | A C D F G H I L M N O P R S T U W |
---|
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Jump to: | C F H I L M P S T U W |
---|
Jump to: | C F H I L M P S T U W |
---|