How does the default template.Must(template.ParseFiles(urls...))
work? Does it just allocate memory for this or that template?
@Tigran_Kashapov, yes, parsing the templates creates an in-memory representation of the template data. You can take a look at the source code of the text/template, html/template, and text/template/parse packages to see how this model looks/works.
thanks
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.