View Source API Reference zotonic_stdlib v1.22.0
Modules
Conversion functions for all kinds of data types. Changes to Rusty's version: added date conversion, undefined handling and more to_bool cases.
Workarounds for various cover deficiencies.
Utility functions for CSS processing. Also used for sanitizing HTML.
Javascript minifier. Based on cssmin.c
Check an IP address against some DNSBL providers (rfc5782)
Useful routines for e-mail address handling.
Extra file functions.
Utility functions for html processing. Also used for property filtering (by m_rsc_update).
Converts HTML 4 charrefs and entities to codepoints.
Loosely tokenizes and generates parse trees for (X)HTML and XML. Adapted by Maas-Maarten Zeeman Extended for basic XML parsing by Marc Worrell
Misc utility URL functions for zotonic
Javascript minifier. Based on jsmin.c
Useful numeric algorithms for floats that cover some deficiencies in the math module. More interesting is digits/1, which implements the algorithm from: http://www.cs.indiana.edu/~burger/fp/index.html See also "Printing Floating-Point Numbers Quickly and Accurately" in Proceedings of the SIGPLAN '96 Conference on Programming Language Design and Implementation.
String related functions
Utility functions for svg processing.
Simple temporary file handling, deletes the file when the calling process stops or crashes.
Misc utility URL functions for zotonic
Fetch (part of) the data of an Url, including its headers.
Discover metadata about an url. First follows any redirects and URL shorteners, then fetches the data at the final URL to inspect all metadata tags, content headers and first part of the HTML. The returned opaque metadata can be questioned with properties. The Slackbot user-agent is used for fetching URLs so that the URL shorteners return a location header and other sites are coerced to give correct metadata. Only the first MB of data is fetched, this prevents fetching large objects.