Skip to content

Commit

Permalink
changed template to return pointer as documented, so methods can be i…
Browse files Browse the repository at this point in the history
…nvoked (#59)
  • Loading branch information
unai-programmfabrik authored Jul 28, 2021
1 parent 6a66801 commit cdee187
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/lib/template/template_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,10 @@ func (loader *Loader) Render(
parsedURL.Host = loader.HTTPServerHost
return parsedURL.String(), nil
},
"server_url": func() url.URL {
return *loader.ServerURL
"server_url": func() *url.URL {
u := new(url.URL)
*u = *loader.ServerURL
return u
},
"server_url_no_user": func() *url.URL {
u := new(url.URL)
Expand Down

0 comments on commit cdee187

Please sign in to comment.