I'm trying to use html/template correctly and it seems there is some logic
I haven't quite understood:
error html/template:index:9: on range loop re-entry: {{range}} branches end
in different contexts: {stateJS delimNone urlPartNone jsCtxRegexp attrNone
elementScript <nil>}, {stateJSRegexp delimNone urlPartNone jsCtxRegexp
attrNone elementScript <nil>}
My template fragment looks like this:
{{range .expiries}}
<option>{{.Name }}</option>
{{end }}
Removing the <option>, </option> element from the inner loop fixes the
issue. My understanding was that I could use that kind of feature (ie
nested html in a range construct).
Help ?!
Thanks for your time
--
Pierre.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Pierre.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.