1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{{#*inline "element"~}}
<p class="{{type_to_class type}}{{~#if attributes.starts_new_page}} startsNewPage{{/if~}}{{~#if attributes.centered}} centered{{/if~}}">
{{~#if text.Plain~}}{{~text.Plain~}}{{~/if~}}
{{~#if text.Styled~}}{{~#each text.Styled~}}
{{~#if text_style~}}<span class="
{{~#each text_style~}}
{{~style this~}}{{~#unless @last}} {{/unless~}}
{{~/each~}}">
{{~/if~}}
{{~content~}}{{~#if text_style~}}</span>{{~/if~}}
{{~/each~}}{{~/if~}}
</p>
{{/inline~}}
<section class="{{root_class}}">
{{#with metadata~}}
{{~#if title~}}
<section class="title-page">
<div class="title">
<h1>{{#each title}}{{ this }}{{/each}}</h1>
<p>{{#each credit}}{{ this }}{{/each}}</p>
<p>{{#each author}}{{ this }}{{/each}}{{#each authors}}{{ this }}{{/each}}</p>
</div>
</section>
{{~/if~}}
{{~/with}}
<section class="body">
{{#each elements}}
{{~#unless this.blocks~}}
{{~#unless this.block~}}
{{~> element~}}
{{~/unless~}}
{{~/unless~}}
{{#if block}}
<div class="dialogueBlock">
{{~#each block}}
{{> element}}
{{~/each~}}
</div>
{{/if}}
{{~#if blocks}}
<div class="dualDialogueBlock">
{{~#each blocks}}
<div class="dialogueBlock">
{{#each block}}
{{> element}}
{{~/each~}}
</div>
{{~/each}}
</div>
{{/if}}
{{~/each}}
</section>
</section>