Browse Source

Update template

Joeri Exelmans 2 years ago
parent
commit
236f52c7dd
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/xopp2oml/template.oml

+ 1 - 5
src/xopp2oml/template.oml

@@ -15,16 +15,12 @@ description <{{output_namespace}}#> as {{shorthand}} {
 
   ci model : xopp:Model [
     object_diagram:hasName "{{shorthand}}"
-  ]
-
-  ci file : xopp:File [
     xopp:hasCreator {{ file.creator | to_oml_string_literal }}
     xopp:hasFileVersion {{ file.fileversion }}
     xopp:hasTitle {{ file.title | to_oml_string_literal }}
     {%- if file.preview != None %}
     xopp:hasPreview {{ file.preview | to_base64_string }}
     {%- endif %}
-    object_diagram:inModel model
   ]
 
   {%- for page_index, page in enumerate(file.pages) %}
@@ -35,7 +31,7 @@ description <{{output_namespace}}#> as {{shorthand}} {
     xopp:hasBackgroundType {{ page.background_type | to_oml_string_literal }}
     xopp:hasBackgroundColor {{ page.background_color | to_oml_string_literal }}
     xopp:hasBackgroundStyle {{ page.background_style | to_oml_string_literal }}
-    xopp:inFile file
+    xopp:inFile model
     object_diagram:inModel model
   ]