Changeset 38026 in project


Ignore:
Timestamp:
12/21/19 16:17:34 (4 months ago)
Author:
sjamaan
Message:

Update spiffy changelog and add an example of how to quickly share files with Spiffy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/spiffy

    r37074 r38026  
    638638
    639639In order to get directory listings, you can use
    640 {{simple-directory-handler}}.  Just parameterize {{handle-directory}}'s
    641 value with the {{simple-directory-handler}} procedure and you're set.
     640{{simple-directory-handler}}.  Just parameterize
     641{{handle-directory}}'s value with the {{simple-directory-handler}}
     642procedure and you're set.
    642643
    643644This directory handler truly is very simple and limited in what you
    644645can customize.  For a more flexible directory handler, see the
    645646[[spiffy-directory-listing]] egg.
     647
     648Here's a nice example to quickly spin up a web server to share some
     649files from the current directory:
     650
     651  (import spiffy simple-directory-handler)
     652  (handle-directory simple-directory-handler)
     653  (root-path ".")
     654  (start-server)
     655
    646656
    647657===== Configuration
     
    799809=== Changelog
    800810
     811* 6.3: Fix URL encoding of directory names in simple-directory-handler.
    801812* 6.2: Fix bug caused by change in CHICKEN 5 that caused Spiffy to not flush the output port on small responses ([[https://bugs.call-cc.org/ticket/1579|#1579]], thanks to [[/users/jim-ursetto|Jim Ursetto]]).
    802813* 6.1: Drop hard dependency on [[posix-groups]] egg so Spiffy can be installed on non-UNIX platforms more easily.
Note: See TracChangeset for help on using the changeset viewer.