summaryrefslogtreecommitdiff
path: root/giscanner/doctemplates/C/mallard-C-class.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/doctemplates/C/mallard-C-class.tmpl')
-rw-r--r--giscanner/doctemplates/C/mallard-C-class.tmpl22
1 files changed, 6 insertions, 16 deletions
diff --git a/giscanner/doctemplates/C/mallard-C-class.tmpl b/giscanner/doctemplates/C/mallard-C-class.tmpl
index 3a208447..b1be35e4 100644
--- a/giscanner/doctemplates/C/mallard-C-class.tmpl
+++ b/giscanner/doctemplates/C/mallard-C-class.tmpl
@@ -1,18 +1,8 @@
-<?xml version="1.0"?>
-<page id="${node.namespace.name}.${node.name}"
- type="guide"
- style="${page_style}"
- xmlns="http://projectmallard.org/1.0/"
- xmlns:api="http://projectmallard.org/experimental/api/"
- xmlns:ui="http://projectmallard.org/experimental/ui/">
- <info>
- <link type="guide" xref="index" group="class"/>
- </info>
- <title>${formatter.format_page_name(node)}</title>
-${formatter.format(node, node.doc)}
-% if node.version:
-<p>Since ${node.version}</p>
-% endif
+<%! page_type="guide" %>\
+<%inherit file="mallard-base.tmpl"/>
+<%block name="content">
+${parent.content()}
+${self.since_version()}
<synopsis ui:expanded="no">
<title>Hierarchy</title>
<tree>
@@ -45,4 +35,4 @@ ${formatter.format(node, node.doc)}
<links type="topic" ui:expanded="yes" groups="#first #default #last" style="linklist">
<title>Other</title>
</links>
-</page>
+</%block>