Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

docs: make serve http/webdav template docs into a table

Nick Craig-Woodef9e6794c23c
diff --git a/cmd/serve/httplib/httplib.go b/cmd/serve/httplib/httplib.go
index 26d195043..1bda5b91d 100644
--- a/cmd/serve/httplib/httplib.go
+++ b/cmd/serve/httplib/httplib.go
@@ -55,23 +55,25 @@ identically.
--template allows a user to specify a custom markup template for http
and webdav serve functions. The server exports the following markup
to be used within the template to server pages:
-.Name The full path of a file/directory.
-.Title "Directory listing of .Name".
-.Sort The current sort used. This is changble via ?sort= parameter
- Sort Options: namedirfist,name,size,time (defailt namedirfirst)
-.Order The current ordering used. This is changable via ?order= paramter
- Order Options: asc,desc (default asc)
-.Query Currently unused.
-.Breacrumb Allows for creating a relative navigation
--- .Link The relative to the root link of the Text.
--- .Text The Name of the directory.
-.Entries Information about a specific file/directory.
--- .URL The 'url' of an entry.
--- .Leaf Currently same as 'URL' but intended to be 'just' the name.
--- .IsDir Boolean for if an entry is a directory or not.
--- .Size Size in Bytes of the entry.
--- .ModTime The UTC timestamp of an entry.
+| Parameter | Description |
+| :---------- | :---------- |
+| .Name | The full path of a file/directory. |
+| .Title | Directory listing of .Name |
+| .Sort | The current sort used. This is changeable via ?sort= parameter |
+| | Sort Options: namedirfist,name,size,time (default namedirfirst) |
+| .Order | The current ordering used. This is changeable via ?order= parameter |
+| | Order Options: asc,desc (default asc) |
+| .Query | Currently unused. |
+| .Breadcrumb | Allows for creating a relative navigation |
+|-- .Link | The relative to the root link of the Text. |
+|-- .Text | The Name of the directory. |
+| .Entries | Information about a specific file/directory. |
+|-- .URL | The 'url' of an entry. |
+|-- .Leaf | Currently same as 'URL' but intended to be 'just' the name. |
+|-- .IsDir | Boolean for if an entry is a directory or not. |
+|-- .Size | Size in Bytes of the entry. |
+|-- .ModTime | The UTC timestamp of an entry. |
#### Authentication