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
As html.template.Template do not embed text.template.Template, we can't get the
parse.Tree of the template.
In my project there is such a demand for html templates, template files are from
outside(so we don't know anything about it), all templates are precompiled and cached(so
it's unnecessary to use parse.Parse), and before Execute one template, I need to go
through its parse.Tree to determine what kind of data is needed.
Even just think about html.template and text.template, if text.template has the ability
to get the parse.Tree, then html.template should have the ability too.
So maybe html.template need a new func to return the parse.Tree, such as ParseTree(),
thanks.
The text was updated successfully, but these errors were encountered:
by yunge.fu:
The text was updated successfully, but these errors were encountered: