Unexpected EOF

I had this working this afternoon, but I’ve broken something - what should I be looking for?

ERROR: 2015/03/11 template: theme/index.html:286: unexpected EOF
ERROR: 2015/03/11 template: theme/index.html~:285: unexpected EOF
ERROR: 2015/03/11 Error while rendering homepage: html/template: “theme/index.html” is an incomplete template

Look for a template construct that isn’t closed (missing {{ end }}?).

This is Go’s template parser that has gotten to the end of file … unexpectedly.

What I do when this happens, if I don’t see it at once, is just remove stuff from the template until it works.

1 Like