tiscaf
tiscaf copied to clipboard
Custom directory listing html
Would be nice to have a custom format for directory listings. A trait along these lines would be nice:
trait DirectoryListing {
def header: xml.Node
def footer: xml.Node
def renderDirectory(path:File): xml.Node
def renderFile(path:File): xml.Node
}
Well, the core project aims to be as small as possible (e.g. that's why I extracted the Restful related stuffs). The proposed HLets are not intended to be as generic as possible, but provides some basic features.
However, more generic, or higher level components could be great to have, so I think I could add a contrib project and if you'd like to provide a more generic directoy listing HLet, I would be happy to incorporate your contribution into the main repository.
So, for now I don't think I will not change the existing DirLet in core to keep it simple.