<%inherit file="/class.tmpl"/> <%block name="synopsis"> \ % if node.namespace is not None: const ${namespace.name} = imports.gi.${namespace.name}; let ${formatter.to_lower_camel_case(node.name)} = new ${namespace.name}.${node.name}(\ % if isinstance(node, (ast.Class, ast.Interface)): % if len(node.properties) > 0: { % for ix, property_ in enumerate(node.properties): % if (property_.construct or property_.construct_only) and property_.writable: ${property_.name.replace('-', '_')}: value, % endif % endfor }\ % endif % else: ${formatter.format_gboxed_constructor(node)}\ % endif ); \ % else:

This structure is inside ${node.parent.namespace.name}.${node.parent.name} and can only be used as a field of that.

% endif