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: cannot access html/template's embedded parse.Tree #3461

Closed
lilyball opened this issue Apr 3, 2012 · 6 comments
Closed

html/template: cannot access html/template's embedded parse.Tree #3461

lilyball opened this issue Apr 3, 2012 · 6 comments
Milestone

Comments

@lilyball
Copy link
Contributor

lilyball commented Apr 3, 2012

The text/template package's Template struct embeds parse.Tree. Unfortunately, when using
html/template, this is hidden behind a non-exported field, making it difficult to debug
html/template issues. The embedded text/template.Template field should probably be
exported.
@robpike
Copy link
Contributor

robpike commented Apr 3, 2012

Comment 1:

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

Owner changed to builder@golang.org.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Sep 12, 2012

Comment 2:

Labels changed: added go1.1maybe.

@robpike
Copy link
Contributor

robpike commented Mar 7, 2013

Comment 3:

Labels changed: removed go1.1maybe.

@rsc
Copy link
Contributor

rsc commented Jul 30, 2013

Comment 4:

Labels changed: added go1.2maybe.

@rsc
Copy link
Contributor

rsc commented Jul 30, 2013

Comment 5:

Labels changed: added feature.

@robpike
Copy link
Contributor

robpike commented Aug 21, 2013

Comment 6:

The embedded tree has been rewritten. If it were exposed, one could modify the tree,
defeating the purpose of the package.
If you need access for debugging, it's trivial to add a method to the package to export
it, but it (being a method not a field) will not have the same API as text/template.
Will not fix.

Status changed to WontFix.

@rsc rsc added this to the Go1.2 milestone Apr 14, 2015
@rsc rsc removed the go1.2maybe label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 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

4 participants