Using function components for template inheritance

By the way, there is also erlydtl, which is used at Zotonic (which also implements “extends” like Selmer).
Zotonic Inheritance
But if I understand correctly, this is not the right way, but “function components” and composition, right?