I would like to generate pages that are showing the content of a folder. Each folder has a html page, so I just need to generate the "list" with all the various sub-folder, so I can access each of them. Also the content changes often, so make the page manually is not an option.
I am aware that Apache has a setting that show the content of a directory; but it is so ugly to look at; so if you have a styled website; it won't look anything like the rest of the site. Also I was told that it is a security hazard, so it is always better to not use that feature.
How can I generate such page, without doing all the work manually? I can use python, but I am flexible with JS too, although I don't know much of it. The basics that I have are that you need CSS for styling a page and HTML to show content; but what code goes in a page to let it query a directory, and what CSS code is needed to make the list pretty, is what I am after.
Aucun commentaire:
Enregistrer un commentaire