Thanks Dom, I didn't realize you could run code right here but yes I've seen this error before too on the same script! I think I finally got it work by moving the above code to its own file and including it at the call site. Given that I take it templates need to be defined in their own files, if this is really so, then perhaps the documentation needs a line highlighting that.
Could you also please throw some light on my other question herein? I see you're using these templates in Jester (which is amazing btw, thanks for all your work!) -- are these templates the way to go for HTML views or do you have other recommendations?
