{"result":{"depiction_url":null,"edges":{"refers":{"objects":[{"created":"2026-09-09T13:48:28Z","object_id":{"id":1346,"is_a":["text","documentation","reference","template_tag"],"name":"doc_template_tag_tag_block","title":"block","uri":"https:\/\/zotonic.com\/id\/1346"},"seq":1000000},{"created":"2026-09-09T13:48:28Z","object_id":{"id":1347,"is_a":["text","documentation","reference","template_tag"],"name":"doc_template_tag_tag_extends","title":"extends","uri":"https:\/\/zotonic.com\/id\/1347"},"seq":1000000},{"created":"2026-09-09T13:48:28Z","object_id":{"id":1348,"is_a":["text","documentation","reference","template_tag"],"name":"doc_template_tag_tag_overrules","title":"overrules","uri":"https:\/\/zotonic.com\/id\/1348"},"seq":1000000},{"created":"2026-09-09T13:48:28Z","object_id":{"id":2505,"is_a":["text","documentation","reference","template_tag"],"name":"doc_template_tag_tag_fragment","title":"fragment","uri":"https:\/\/zotonic.com\/id\/2505"},"seq":1000000}],"predicate":{"id":2409,"is_a":["meta","predicate"],"name":"refers","title":{"_type":"trans","tr":{"en":"Refers"}},"uri":"https:\/\/zotonic.com\/id\/refers"}},"relation":{"objects":[{"created":"2020-05-30T05:48:09Z","object_id":{"id":1346,"is_a":["text","documentation","reference","template_tag"],"name":"doc_template_tag_tag_block","title":"block","uri":"https:\/\/zotonic.com\/id\/1346"},"seq":1000000},{"created":"2020-05-30T05:48:09Z","object_id":{"id":1347,"is_a":["text","documentation","reference","template_tag"],"name":"doc_template_tag_tag_extends","title":"extends","uri":"https:\/\/zotonic.com\/id\/1347"},"seq":1000000},{"created":"2020-05-30T05:48:09Z","object_id":{"id":1348,"is_a":["text","documentation","reference","template_tag"],"name":"doc_template_tag_tag_overrules","title":"overrules","uri":"https:\/\/zotonic.com\/id\/1348"},"seq":1000000}],"predicate":{"id":303,"is_a":["meta","predicate"],"name":"relation","title":{"_type":"trans","tr":{"nl":"Relatie","en":"Relation"}},"uri":"http:\/\/purl.org\/dc\/terms\/relation"}},"subject":{"objects":[{"created":"2026-09-09T13:48:28Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-09T13:48:28Z","object_id":{"id":2563,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_frontend_developer","title":"Frontend developer","uri":"https:\/\/zotonic.com\/id\/2563"},"seq":2},{"created":"2026-09-09T13:48:28Z","object_id":{"id":2620,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_template","title":"Template","uri":"https:\/\/zotonic.com\/id\/2620"},"seq":3},{"created":"2026-09-09T13:48:28Z","object_id":{"id":2641,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_render","title":"Render","uri":"https:\/\/zotonic.com\/id\/2641"},"seq":4},{"created":"2026-09-09T13:48:28Z","object_id":{"id":2691,"is_a":["categorization","keyword","keyword_quality"],"name":"zotonic_topic_maintainability","title":"Maintainability","uri":"https:\/\/zotonic.com\/id\/2691"},"seq":5}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1370,"is_a":["text","documentation","reference","template_tag"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1370"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_template_tag_tag_inherit","page_url":{"en":"https:\/\/zotonic.com\/docs\/1370\/inherit","x-default":"https:\/\/zotonic.com\/docs\/1370\/inherit"},"preview_url":null,"resource":{"version":3988,"pivot_location_lat":null,"title":"inherit","is_authoritative":true,"body":"<aside><p>See also<\/p><p><a href=\"\/id\/doc_template_tag_tag_block\" class=\"doc-reference doc-reference-tag\"><code>tag#block<\/code><\/a>, <a href=\"\/id\/doc_template_tag_tag_extends\" class=\"doc-reference doc-reference-tag\"><code>tag#extends<\/code><\/a>, <a href=\"\/id\/doc_template_tag_tag_fragment\" class=\"doc-reference doc-reference-tag\"><code>tag#fragment<\/code><\/a> and <a href=\"\/id\/doc_template_tag_tag_overrules\" class=\"doc-reference doc-reference-tag\"><code>tag#overrules<\/code><\/a>.<\/p><\/aside>\n<p>Include the markup of an extended template into the extending template.<\/p>\n<p>Say you have a template <code>hello.tpl<\/code> containing:<\/p>\n<p>templates\/hello.tpl<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">{% block test %}\nThis is content from hello.tpl\n{% endblock %}\n<\/code><\/pre>\n<p>And in your site you have a <code>world.tpl<\/code> template, defined as:<\/p>\n<p>templates\/world.tpl<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">{% extends &quot;hello.tpl&quot; %}\n{% block test %}\n    First line\n    {% inherit %}\n    This is more content from world.tpl\n{% endblock %}\n<\/code><\/pre>\n<p>Then, the result of rendering the template <code>world.tpl<\/code> will be:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-erlang\">First line\nThis is content from hello.tpl\nThis is more content from world.tpl\n<\/code><\/pre>\n<h2>Arguments<\/h2>\n<p>The <code>inherit<\/code> tag can pass extra variables when rendering the inherited block:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">{% block test %}\n    {% inherit who=&quot;world&quot; %}\n{% endblock %}\n<\/code><\/pre>\n<p>The <code>with<\/code> keyword is optional:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">{% inherit with who=&quot;world&quot; %}\n<\/code><\/pre>\n<p>The supplied arguments extend the current template context for the inherited block render.<\/p>","slug":"inherit","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"a8ef0c22207ec114269d6083391d328ff8ef7ea84c0fc30da5f4df531990094f","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":324,"is_a":["meta","category"],"name":"template_tag","title":"Tags","uri":"https:\/\/test.zotonic.com\/id\/324"},"doc_source_path":"doc\/template-tags\/inherit.md","publication_start":"2023-06-24T08:17:58Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/doc\/template-tags\/inherit.md","pivot_location_lng":null,"doc_source_kind":"template_tag","name":"doc_template_tag_tag_inherit","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:20Z","uri":null,"doc_status":"current","is_dependent":false,"publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"fcd7360cf6d307f08dac71bede7378e2b4ac72f0\n","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-01T12:53:42Z","title_slug":"inherit"},"uri":"https:\/\/zotonic.com\/id\/1370","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1370"}},"status":"ok"}