((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/breadcrumbs" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.")) (section 2 "breadcrumbs" (toc) (section 3 "Description" (p "Breadcrumbs for web pages")) (section 3 "Author" (p (int-link "/users/mario-domenech-goulart" "Mario Domenech Goulart"))) (section 3 "Repository" (p (link "http://github.com/mario-goulart/breadcrumbs" "http://github.com/mario-goulart/breadcrumbs"))) (section 3 "Requirements" (p "None")) (section 3 "Procedures" (def (sig (procedure "(add-breadcrumb! path title)" (id add-breadcrumb!))) (p "Adds a breadcrumb for path " (tt "path") " (string) with title " (tt "title") " (string).")) (def (sig (procedure "(get-breadcrumb path)" (id get-breadcrumb))) (p "Return the formatted breadcrumbs for path " (tt "path") " (a string).  The breadcrumbs are formatted by " (tt "breadcrumb-link") " (see the Parameters section)."))) (section 3 "Parameters" (def (sig (parameter "(breadcrumbs-home-path [string])" (id breadcrumbs-home-path))) (p "The home path for the breadcrumbs chain. The defaul value is " (tt "\"/\"") ".")) (def (sig (parameter "(breadcrumbs-home-label [string])" (id breadcrumbs-home-label))) (p "The label to be used for the home path breadcrumb. The default value is " (tt "\"Home\"") ".")) (def (sig (parameter "(breadcrumbs-separator [string])" (id breadcrumbs-separator))) (p "The separator for breadcrumbs.  The default value is " (tt "\" > \"") ".")) (def (sig (parameter "(breadcrumbs-link [procedure])" (id breadcrumbs-link))) (p "A two-arguments procedure to make breadcrumbs links. The first argument is the breadcrumb URI and the second one the breadcrumb label.  The default value is:") (highlight scheme "(lambda (uri text)\n  `(a (@ (href ,uri)) ,text))"))) (section 3 "License" (pre " Copyright (c) 2010-2023, Mario Domenech Goulart\n All rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n 1. Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the\n    documentation and/or other materials provided with the distribution.\n 3. The name of the authors may not be used to endorse or promote products\n    derived from this software without specific prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS\n OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY\n DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER\n IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR\n OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.")) (section 3 "Version history" (section 4 "Version 1.2 (2023-05-24)" (ul (li "Ensure breadcrumbs link to directories (prevents issues with links to relative paths after following a breadcrumb)"))) (section 4 "Version 1.1 (2020-06-19)" (ul (li "CHICKEN 5 support"))) (section 4 "Version 1.0" (ul (li "Emit SXML instead of strings.") (li "Remove the " (tt "debug-breadcrumbs") " parameter")) (p (b "Warning") ": this release will break your code if you are using:") (ul (li "the default value for the " (tt "breadcrumbs-link") " parameter.") (li "the " (tt "debug-breadcrumbs") " parameter"))) (section 4 "Version 0.1" (ul (li "Initial release"))))))