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
This obviously can't be solved in the general case. (The if statement could call a Go function, so solving this is equivalent to solving the halting problem.) But some common cases could be special-cased to handle most scenarios.
While not exactly the same. This seems like a similar scenario that can be handled correctly every time because the same tag is used in both the if and the else block:
{{ define "test" }}
{{ if .Active }}
<liclass="active">
{{ else }}
<liclass="inactive">
{{ end }}
</li>
{{ end }}
[error] test.html: Error: An error occured during printing. Found invalid node root.
We have code structurally similar to this (only more complex, with different tags):
This yields:
This is similar to #59, but it causes an error instead of duplication.
The text was updated successfully, but these errors were encountered: