Update template

This commit is contained in:
Joeri Exelmans 2023-05-04 11:35:01 +02:00
parent df5f0b2d51
commit 236f52c7dd

View file

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