Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html/template: need access to parse tree. #6318

Closed
gopherbot opened this issue Sep 4, 2013 · 2 comments
Closed

html/template: need access to parse tree. #6318

gopherbot opened this issue Sep 4, 2013 · 2 comments

Comments

@gopherbot
Copy link

by yunge.fu:

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.
@robpike
Copy link
Contributor

robpike commented Sep 4, 2013

Comment 1:

It is an incompatibility between the packages.

Labels changed: added priority-later, removed priority-triage.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Sep 4, 2013

Comment 2:

This issue was closed by revision 80f39f7.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants