templates: prefer `extends` and `block`
tune templates