diff options
author | Paul van Brouwershaven <vanbroup@users.noreply.github.com> | 2021-12-02 17:30:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-02 17:30:36 +0100 |
commit | 0eaaa8fee37068bfc8ecfb760f770ecc9a7af22a (patch) | |
tree | 95cf7c5ac3a7e56c0eb411a28cae5c0412a510bd /go.mod | |
parent | 58adbeef88ea5c8769d12ba27eef2d89bdf575eb (diff) |
Implement XML data support
Example:
```
{{ with resources.Get "https://example.com/rss.xml" | transform.Unmarshal }}
{{ range .channel.item }}
<strong>{{ .title | plainify | htmlUnescape }}</strong><br />
<p>{{ .description | plainify | htmlUnescape }}</p>
{{ $link := .link | plainify | htmlUnescape }}
<a href="{{ $link }}">{{ $link }}</a><br />
<hr>
{{ end }}
{{ end }}
```
Closes #4470
Diffstat (limited to 'go.mod')
-rw-r--r-- | go.mod | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -13,6 +13,7 @@ require ( github.com/bep/golibsass v1.0.0 github.com/bep/gowebp v0.1.0 github.com/bep/tmc v0.5.1 + github.com/clbanning/mxj/v2 v2.5.5 github.com/cli/safeexec v1.0.0 github.com/disintegration/gift v1.2.1 github.com/dustin/go-humanize v1.0.0 |