Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom directory listing html #13

Open
hrj opened this issue Feb 21, 2014 · 1 comment
Open

Custom directory listing html #13

hrj opened this issue Feb 21, 2014 · 1 comment
Labels

Comments

@hrj
Copy link

hrj commented Feb 21, 2014

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
}
@satabin
Copy link
Member

satabin commented Feb 21, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants