Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
text/template: improve documentation for creating templates #4338
http://play.golang.org/p/YfvMjcI7b5 Errors from that code are unhelpful, and the documentation for * http://golang.org/pkg/text/template/#New * http://golang.org/pkg/text/template/#Template.ParseFiles No mention is made in the docs that when using .New() and then .ParseFiles(), the orginal temaplte's name needs to tbe the same as the base name of the first file.
The example provided in the issue is incomplete/unrunnable even locally, but I wonder if was meant for html/template instead since that's what referred to there. Although, html/template documentation says the same thing