hugo/helpers
bep be6696c34b Handle views in combo with Ace base templates
As views looks like a regular template, but doesn't need a base template, we have to look inside it.

Altough really not needed by this commit, reading the full file content into memory just to do a substring search is a waste.
So this commit implements a `ReaderContains` func that in most cases should be much faster than doing an `ioutil.ReadAll` and `bytes.Contains`:

```
benchmark                   old ns/op     new ns/op     delta
BenchmarkReaderContains     78452         20260         -74.18%

benchmark                   old allocs     new allocs     delta
BenchmarkReaderContains     46             20             -56.52%

benchmark                   old bytes     new bytes     delta
BenchmarkReaderContains     46496         1258          -97.29%
```

Fixes #999
2015-03-29 21:12:13 +02:00
..
content.go Experimental AsciiDoc support with external helpers 2015-03-12 22:01:49 -04:00
content_test.go Correct initialisms as suggested by golint 2015-03-11 21:55:00 +01:00
general.go Handle views in combo with Ace base templates 2015-03-29 21:12:13 +02:00
general_test.go Handle views in combo with Ace base templates 2015-03-29 21:12:13 +02:00
hugo.go Refactor Hugo version 2015-03-18 12:23:13 +01:00
hugo_test.go Refactor Hugo version 2015-03-18 12:23:13 +01:00
path.go Handle views in combo with Ace base templates 2015-03-29 21:12:13 +02:00
path_test.go Fix errors reported by Go Vet 2015-03-06 15:25:19 +01:00
pygments.go Hash all pygments parameters. 2015-03-29 13:01:44 +02:00
url.go More initialism corrections (golint) 2015-03-18 11:30:37 +01:00
url_test.go More initialism corrections (golint) 2015-03-18 11:30:37 +01:00