f5cd4f17f8
Exhaustive test coverage to test the usage of sort,order and limit parameter for the browse middleware
2015-10-09 11:28:11 +05:30
10ab037833
Moved fileServer and browse.IndexPages into middleware package
2015-09-19 20:35:48 -06:00
8120e57850
add user defined variables into browse template
2015-09-18 08:52:12 +01:00
30b19190dc
add ignoreIndexes option to browse
2015-09-17 20:33:39 +01:00
b9d3e7721e
Fixing my comment
...
the old comment might throw the source-reader off, my bad.
2015-08-27 18:01:46 +03:00
414b47d653
adds json option for the browse middleware
2015-08-24 23:37:11 +03:00
35e25be1a4
browse: Size displayed in IEC format
...
Powers of 2, or base 1024, rather than powers of 10 or base 1000. The powers of 2 are technically more accurate.
2015-07-29 19:15:38 -06:00
bf47951f3a
Merge pull request #196 from evermax/master
...
markdown, browse: Integrated Context struct for templating
2015-07-25 15:15:51 -06:00
a578c43810
browse: Add txt files to list of default files
2015-07-24 10:27:19 -06:00
1589129ea1
Save sorting preferences as cookies
...
To be used across directories
2015-07-23 13:25:03 +03:00
f536bc94b2
Added the Context to the browse directive
...
Moved the Context type to middleware and exported it.
Users can use .Include and others in browse directive templating
Created test for the templates directive.
2015-07-17 20:07:24 +02:00
68add78230
Implement sorting functionality for "Browse"
2015-06-21 18:04:47 +03:00
e4b50aa814
Fix more lint warnings
2015-05-24 22:52:34 -04:00
a1312465b5
browse: return forbidden (403) only when it is a permission error.
2015-05-10 17:58:44 +01:00
e4fdf171c7
More refactoring - nearly complete
2015-05-04 11:49:49 -06:00
1a8f753303
Meh.
2015-04-21 21:41:58 -06:00
bdd145b0de
Better error handling when executing templates
2015-04-21 21:36:30 -06:00
d33256f1dc
Refactor: Middleware chain uses Handler instead of HandlerFunc
2015-04-02 23:30:54 -06:00
843f6e83a9
Refactored browse middleware to return errors
2015-03-28 16:46:54 -06:00
63b39c78ee
Better default template; other fixes
2015-03-24 23:05:42 -06:00
9672850d11
Bug fixes and improvements for browse middleware
2015-03-24 21:54:33 -06:00
00e43197fd
Started browse middleware to list directory contents
2015-03-24 20:12:48 -06:00