You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template execution: template: talks/slide.tmpl:60:27: executing "entirepage" at <fmt .>: error calling fmt: template: talks/slide.tmpl:1:0: executing "fmt" at <html>: error calling html: template: talks/slide.tmpl:188:19: executing "html" at <.HTML>: can't evaluate field HTML in type string
Invoke the template named "html" using the usual html/template way
instead of invoking it as a function (via the tmplfunc package) to
work around rsc/tmplfunc#1.
The package golang.org/x/tools/present imports "html/template" from
the standard library, so its HTML.HTML field of type template.HTML
isn't understood to be content from a trusted source by the internal
backported copy. Use type aliases for those special types to fix that.
Fixesgolang/go#51989.
Updates rsc/tmplfunc#1.
Change-Id: Ib9609f41b17407e297ea3bb111f346188aa7a9b0
Reviewed-on: https://go-review.googlesource.com/c/website/+/396234
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jamal Carvalho <jamalcarvalho@google.com>
For example, https://go.dev/talks/2014/go4gophers.slide uses
.html
(on slide 76) and currently fails to render with the error:(Same problem also affects articles, e.g., https://go.dev/talks/2016/refactor.article.)
The problem involves the use of
tmplfunc
package, and I've reported more details about that upstream in rsc/tmplfunc#1.I'll send a workaround CL with a test case for x/website for now.
The text was updated successfully, but these errors were encountered: