# Using function components for template inheritance

**URL:** <https://forum.elixirforum.com/t/using-function-components-for-template-inheritance/49678>\
**Category:** Questions\
**Tags:** phoenix\
**Created:** [August 20, 2022, 5:51pm UTC](https://forum.elixirforum.com/t/using-function-components-for-template-inheritance/49678 "2022-08-20T17:51:07Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Werner](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/w/f4b2a3/32.png) [@Werner](https://forum.elixirforum.com/u/Werner)\
**Post date:** [September 14, 2022, 7:59am UTC](https://forum.elixirforum.com/t/using-function-components-for-template-inheritance/49678/9 "2022-09-14T07:59:23Z")

</div>

By the way, there is also erlydtl, which is used at Zotonic (which also implements “extends” like Selmer).  
[Zotonic Inheritance](https://zotonic.com/en/latest/developer-guide/templates.html#inheritance)  
But if I understand correctly, this is not the right way, but “function components” and composition, right?

---

_[View the full topic](https://forum.elixirforum.com/t/using-function-components-for-template-inheritance/49678)._
