-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
我在运行第三章demo时,总是空白页面,调试时候发现把这一行
Line 54 in e5fd3ef
| _, err = tmpl.Parse(string(content)) |
改成 tmpl.ParseFiles("/path/to/index.html") 之后就能正常显示页面,我读了下 Parse 和 ParseFiles函数源码,按照 ParseFiles 的写法把这一行改成下面这样,也可以正常显示
_, err = tmpl.New(fi.Name()).Parse(string(content))Metadata
Metadata
Assignees
Labels
No labels