Hi,
This is not a problem, or a bug... This is a question to understand the rules of templates
As you can see, I try to set a "base" template (T1) and children templates (T2). This code works as expected. I'm using this kind of generation with my http framework (kwiscale)
To declare HEAD and CONTENT templates is required because I want to be able to not redeclare one of them in children templates. And this is ok, it works and I'm glade :)
The question is: Try to insert some content inside T1->CONTENT template. You will see that the compilation breaks. Go template module says that there are multiple definition of templates.
But without content in T1 definition, everything is ok.
The question is: Is it normal that defining empty templates works ? if no: please don't treat this as a bug, it saves my life.
Second question: I'd like to set "default" content, and let user redefine CONTENT and/or HEAD template. Any possibility ?
Thanks a lot