mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
LibWeb: Add directory entries page when visiting a local directory
This commit is contained in:
parent
e4c3a52cfa
commit
eafdb06d87
9 changed files with 163 additions and 0 deletions
|
@ -193,6 +193,18 @@ void FrameLoader::set_error_page_url(DeprecatedString error_page_url)
|
|||
s_error_page_url = error_page_url;
|
||||
}
|
||||
|
||||
static DeprecatedString s_directory_page_url = "file:///res/html/directory.html";
|
||||
|
||||
DeprecatedString FrameLoader::directory_page_url()
|
||||
{
|
||||
return s_directory_page_url;
|
||||
}
|
||||
|
||||
void FrameLoader::set_directory_page_url(DeprecatedString directory_page_url)
|
||||
{
|
||||
s_directory_page_url = directory_page_url;
|
||||
}
|
||||
|
||||
// FIXME: Use an actual templating engine (our own one when it's built, preferably
|
||||
// with a way to check these usages at compile time)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue