Add new tutorial on breaking templates into blocks
|Reported by:||Ciro Santilli 六四事件 法轮功 包卓轩||Owned by:||nobody|
|Severity:||Normal||Keywords:||template, tutorial, extend|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I suggest you use the
- extends template
- the conventional title, extrahead, content_title, content, etc. blocks
combo from for the polls tutorial from the start when the template language is first used in
since this is an absolutely fundamental design pattern.
While the "do simple now and improve later" strategy could be used (in tutorial 5, we say: wow, lets refactor some more code!), I think the direct approach is better here, since it is pretty obvious that this factors out the code.