Update postprocess.md

Fixes #1080
This commit is contained in:
Bjørn Erik Pedersen 2020-04-11 20:53:16 +02:00 committed by GitHub
parent 1121f74a54
commit c5db4ba2b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ A prime use case for this is [CSS purging with PostCSS](#css-purging-with-postcs
There are currently two limitations to this:
1. This only works for `*.html` files.
1. This only works in `*.html` templates (i.e. templates that produces HTML files).
2. You cannot manipulate the values returned from the resource's methods. E.g. the `upper` in this example will not work as expected:
```go-html-template
@ -67,4 +67,4 @@ Note that in the example above, the "CSS purge step" will only be applied to the
{{ $css = $css | minify | fingerprint | resources.PostProcess }}
{{ end }}
<link href="{{ $css.RelPermalink }}" rel="stylesheet" />
```
```