创建一个基本模板.用它渲染first.html一个模板.
eg. :
var tmpl = template.Must(template.ParseFiles(
"templates/base.html",
"templates/first.html",
))
Run Code Online (Sandbox Code Playgroud)
但我也想添加更多的.html文件进行渲染.任何参考?
我可以在画布上加载图像,但现在我想用 pdf 文件替换图像。如何在Canvas上加载 Pdf 文件作为 image.src?