Commit Graph

670 Commits

Author SHA1 Message Date
04571ff393 NewReplacer takes third argument for empty value string 2015-07-24 10:27:19 -06:00
7adff28aa9 Merge pull request #198 from pyed/sort
browse: Save sorting preferences as cookies
2015-07-23 11:06:56 -06:00
1589129ea1 Save sorting preferences as cookies
To be used across directories
2015-07-23 13:25:03 +03:00
97dcc79a7f Remove undesired committed debug logs 2015-07-23 11:53:15 +02:00
bc2feece4b Moved test files to testdata folder.
Changed the tests accordingly.
2015-07-23 09:35:46 +02:00
1f17895b12 Merge pull request #197 from Karthic-Hackintosh/master
initial test for config/setup/fastcgi.go
2015-07-22 23:25:04 -06:00
665f24d85f initial test for config/setup/fastcgi.go 2015-07-23 10:27:42 +05:30
2df30d186e Added a test on markdown for the default template 2015-07-21 17:45:32 +02:00
6451e10d3e Add context to markdown template
Created a struct containing middleware.Context, Title, Markdown and the
variables from the user to use to render the template.
The title now can be accessed via {{.Title}}.
The variables can now be accessed via {{.Var.myVariableName}}.
2015-07-21 07:58:34 +02:00
d222a9e9f2 Merge pull request #192 from netmml/patch-2
specify go versions to use via travis
2015-07-19 23:13:49 -06:00
00997db5ae markdown: Fix large markdown files that got truncated 2015-07-18 12:57:16 -06:00
2d5320c454 Added test for the browse directive
Created sample files for the test
2015-07-18 11:37:05 +02:00
2fa6e278d2 Merge branch 'master' of https://github.com/mholt/caddy 2015-07-18 09:58:27 +02:00
ef381fbb54 Update .travis.yml 2015-07-18 03:37:22 -04:00
a74b20f278 .zip for Win/Mac, .tar.gz for Linux/BSD 2015-07-17 17:26:33 -06: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
95140f948f version bump 0.7.3 v0.7.3 2015-07-15 09:52:47 -06:00
afc540f6b7 Updated changes 2015-07-15 09:36:34 -06:00
fcf2622c26 Merge pull request #187 from evermax/master
redir: Preserve query string on catch-all redirect (fixes #180)
2015-07-13 09:42:19 -06:00
d9ebc5398a Changes regarding review
Use path.Join and then check if the request had a slash at the end to
place it again.
2015-07-12 21:22:15 +02:00
eea68c34ad Changes regarding comment.
Used http status code instead of a hardcoded value.
Used url.Parse instead of url.ParseRequestURI, so that you can parse
both absolute and relative URL.
2015-07-12 16:43:35 +02:00
8a2d0890a2 Changes regarding issue 180
The get parameters are now forwarded when redirected.
Added some tests to validate this behavior.
2015-07-12 16:01:32 +02:00
1a82943db2 core: Simplify Server initializer 2015-07-11 12:00:21 -06:00
3c36edec1f Merge pull request #185 from Karthic-Hackintosh/master
Complete test coverage for config/setup/markdown.go
2015-07-11 10:39:52 -06:00
0f913e89db Merge pull request #183 from peterhellberg/extensions_tests
ext: Initial tests for the extensions middleware
2015-07-11 10:38:42 -06:00
2b7ec1b023 Complete test coverage for config/setup/markdown.go 2015-07-11 00:44:31 +05:30
33fa29fda0 extensions: Initial tests 2015-07-10 12:05:06 -06:00
d3c229375c Fixed import command, added tests 2015-07-07 22:38:48 -06:00
c82d7c2dd2 templates: Better error handling for missing files 2015-07-06 23:37:27 -06:00
553d76dab3 Merge pull request #179 from abiosoft/master
gzip: Const for wildcard extension (and added test)
2015-07-05 23:46:30 -06:00
d4f0ac2303 Merge remote-tracking branch 'upstream/master' 2015-07-06 06:43:02 +01:00
4588812d24 Gzip: Fix wildcard extension bug. 2015-07-06 06:36:48 +01:00
9467dbdd40 Fix errors tests 2015-07-05 23:23:35 -06:00
68c416e414 gzip: Fix to allow wildcard extension 2015-07-05 23:23:21 -06:00
71c4fdbc85 errors: Prepend timestamp to log entry 2015-07-05 23:20:37 -06:00
7dbe42286d Merge pull request #174 from mholt/gzipfix
gzip: Make it gzip again

Removes mimes filter in favor of extensions filter (might be temporary)
2015-07-05 23:19:51 -06:00
b5579ca910 gzip: Remove mimes 2015-07-03 18:13:30 -06:00
cd2b255ae3 Merge pull request #177 from Karthic-Hackintosh/master
preliminary test case for config/setup/markdown.go
2015-07-03 13:29:53 -06:00
93f29a7598 preliminary test case for config/setup/markdown.go 2015-07-03 10:03:22 +05:30
32ef35b952 gzip: Fix tests 2015-07-01 19:05:31 -06:00
abf22909f1 gzip: Make it gzip again 2015-07-01 18:56:30 -06:00
a86e16ddde That's a wrap; version 0.7.2 v0.7.2 2015-07-01 12:09:31 -06:00
263fa064cd Merge pull request #169 from abiosoft/master
git: Remove from core (available as add-on)
2015-07-01 11:44:49 -06:00
915172e9ef templates: Close files after done including them 2015-07-01 11:36:37 -06:00
4d066b7e30 ext: Only append extension if request is not for directory (fixes #173) 2015-07-01 11:35:52 -06:00
a7f0705bcf Merge remote-tracking branch 'upstream/master' 2015-07-01 14:01:45 +01:00
16f18bfeff Update change list 2015-06-30 18:21:18 -06:00
7a42e60bcb templates: Support for nested include files
i.e. included files are also parsed as templates
2015-06-30 18:21:18 -06:00
aecdecbdf8 Merge remote-tracking branch 'upstream/master' 2015-06-30 17:31:40 +01:00
a790db134d Merge pull request #171 from bigtiger/patch-1
Massage some verbiage
2015-06-30 10:24:59 -06:00