[web-devel] Directory listings
michael at snoyman.com
Wed Jan 19 22:47:11 CET 2011
Thanks Jeremy, I think I'll build off of that. For the record, I'm
purposely building the non-WAI-specific parts of wai-app-static as
separate functions so that, at least in theory, they can be used by
other frameworks later. Regarding our earlier discussion of which HTML
datatype to use for the listings: I think it makes the most sense to
just use a ByteString. What do you think?
On Tue, Jan 18, 2011 at 11:40 PM, Jeremy Shaw <jeremy at n-heptane.com> wrote:
> There is some pontentially re-usable directory listing code here,
> One thing I think is nice is that it separates the traversing of the
> directories and get file meta data from the rendering of the listing. This
> means it should be easier to plug in alternative views, such as a directory
> listing that creates an on-the-fly image gallery.
> Though the hooks for doing that are not as nice as they could be.
> Anyway, not sure how much could actually be reused with WAI.
> - jeremy
> On Jan 18, 2011, at 3:29 PM, Michael Snoyman wrote:
> Hi everyone,
> I'm working on a static file serving WAI app, which can either be
> used from a library, or combined with Warp as a standalone executable.
> One of its features will be directory listings. Is any interested in
> designing a directory listing page? Extra points if you can style it
> using some Haskell colors.
>  https://github.com/snoyberg/wai-app-static
> web-devel mailing list
> web-devel at haskell.org
More information about the web-devel